diff options
| author | Matt Corallo <[email protected]> | 2016-09-30 18:19:57 -0400 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2016-10-04 12:35:07 -0400 |
| commit | 0278fb5f48ae9e42ec0772f85e201051077f633c (patch) | |
| tree | 7fb5a55e2c64d3ae5860ab9a326dbac7c81f4b3e /src/main.cpp | |
| parent | Make validationinterface.UpdatedBlockTip more verbose (diff) | |
| download | discoin-0278fb5f48ae9e42ec0772f85e201051077f633c.tar.xz discoin-0278fb5f48ae9e42ec0772f85e201051077f633c.zip | |
Remove duplicate nBlocksEstimate cmp (we already checked IsIBD())
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp index 37a0a2f30..2eb641e54 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3087,12 +3087,9 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams, } } // Relay inventory, but don't relay old inventory during initial block download. - int nBlockEstimate = 0; - if (fCheckpointsEnabled) - nBlockEstimate = Checkpoints::GetTotalBlocksEstimate(chainparams.Checkpoints()); if(connman) { - connman->ForEachNode([nNewHeight, nBlockEstimate, &vHashes](CNode* pnode) { - if (nNewHeight > (pnode->nStartingHeight != -1 ? pnode->nStartingHeight - 2000 : nBlockEstimate)) { + connman->ForEachNode([nNewHeight, &vHashes](CNode* pnode) { + if (nNewHeight > (pnode->nStartingHeight != -1 ? pnode->nStartingHeight - 2000 : 0)) { BOOST_REVERSE_FOREACH(const uint256& hash, vHashes) { pnode->PushBlockHash(hash); } |