We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3f1bb1a + eae82d8 commit ef14236Copy full SHA for ef14236
src/main.cpp
@@ -1706,10 +1706,11 @@ bool CBlock::AcceptBlock()
1706
return error("AcceptBlock() : AddToBlockIndex failed");
1707
1708
// Relay inventory, but don't relay old inventory during initial block download
1709
+ int nBlockEstimate = Checkpoints::GetTotalBlocksEstimate();
1710
if (hashBestChain == hash)
1711
CRITICAL_BLOCK(cs_vNodes)
1712
BOOST_FOREACH(CNode* pnode, vNodes)
- if (nBestHeight > (pnode->nStartingHeight != -1 ? pnode->nStartingHeight - 2000 : 140700))
1713
+ if (nBestHeight > (pnode->nStartingHeight != -1 ? pnode->nStartingHeight - 2000 : nBlockEstimate))
1714
pnode->PushInventory(CInv(MSG_BLOCK, hash));
1715
1716
return true;
0 commit comments