mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-09-10 14:02:20 +00:00
Remove duplicate nBlocksEstimate cmp (we already checked IsIBD())
Github-Pull: #8865 Rebased-From: 0278fb5f48ae9e42ec0772f85e201051077f633c
This commit is contained in:
parent
0a4aa87623
commit
4c71fc42fb
@ -3110,13 +3110,10 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Relay inventory, but don't relay old inventory during initial block download.
|
// Relay inventory, but don't relay old inventory during initial block download.
|
||||||
int nBlockEstimate = 0;
|
|
||||||
if (fCheckpointsEnabled)
|
|
||||||
nBlockEstimate = Checkpoints::GetTotalBlocksEstimate(chainparams.Checkpoints());
|
|
||||||
{
|
{
|
||||||
LOCK(cs_vNodes);
|
LOCK(cs_vNodes);
|
||||||
BOOST_FOREACH(CNode* pnode, vNodes) {
|
BOOST_FOREACH(CNode* pnode, vNodes) {
|
||||||
if (nNewHeight > (pnode->nStartingHeight != -1 ? pnode->nStartingHeight - 2000 : nBlockEstimate)) {
|
if (nNewHeight > (pnode->nStartingHeight != -1 ? pnode->nStartingHeight - 2000 : 0)) {
|
||||||
BOOST_REVERSE_FOREACH(const uint256& hash, vHashes) {
|
BOOST_REVERSE_FOREACH(const uint256& hash, vHashes) {
|
||||||
pnode->PushBlockHash(hash);
|
pnode->PushBlockHash(hash);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user