|
|
|
@ -1706,10 +1706,11 @@ bool CBlock::AcceptBlock()
|
|
|
|
|
return error("AcceptBlock() : AddToBlockIndex failed");
|
|
|
|
|
|
|
|
|
|
// Relay inventory, but don't relay old inventory during initial block download
|
|
|
|
|
int nBlockEstimate = Checkpoints::GetTotalBlocksEstimate();
|
|
|
|
|
if (hashBestChain == hash)
|
|
|
|
|
CRITICAL_BLOCK(cs_vNodes)
|
|
|
|
|
BOOST_FOREACH(CNode* pnode, vNodes)
|
|
|
|
|
if (nBestHeight > (pnode->nStartingHeight != -1 ? pnode->nStartingHeight - 2000 : 140700))
|
|
|
|
|
if (nBestHeight > (pnode->nStartingHeight != -1 ? pnode->nStartingHeight - 2000 : nBlockEstimate))
|
|
|
|
|
pnode->PushInventory(CInv(MSG_BLOCK, hash));
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|