Skip to content

Commit

Permalink
nit: Handle ChipNet "maxBackLog" in Controller::downloadTaskRecommend…
Browse files Browse the repository at this point in the history
…edThrottleTimeMsec

ChipNet wasn't being explicitly handled in this function, even though it would end up
effectively producing the same results as before this commit (at least
before block 1.3 million).
  • Loading branch information
cculianu committed Jun 5, 2024
1 parent b644e4f commit 383af52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -857,8 +857,8 @@ unsigned Controller::downloadTaskRecommendedThrottleTimeMsec(unsigned bnum) cons
} else if (sm->net == BTC::ScaleNet) {
if (bnum > 10'000)
maxBackLog = 10; // on ScaleNet, after block 10,000 -- we may start to hit big blocks.
} else if (sm->net == BTC::TestNet4) {
// nothing, use 1000 always, testnet4 has has 2MB blocks.
} else if (sm->net == BTC::TestNet4 || sm->net == BTC::ChipNet) {
// nothing, use 1000 always, testnet4 & chipnet have 2MB blocks.
} else {
// testnet
if (bnum > 1'300'000) // beyond this height 32MB blocks may be common, esp. in the future
Expand Down

0 comments on commit 383af52

Please sign in to comment.