diff options
| author | Suhas Daftuar <[email protected]> | 2015-05-15 17:07:11 -0400 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2015-06-17 15:37:50 -0400 |
| commit | ae6f957a628efeeae47b8a2deee595c2ac5e7640 (patch) | |
| tree | c7525feb8f3fb57ea6fee6fed7e5028368d31b4d /src/main.cpp | |
| parent | Do not inv old or missing blocks when pruning (diff) | |
| download | discoin-ae6f957a628efeeae47b8a2deee595c2ac5e7640.tar.xz discoin-ae6f957a628efeeae47b8a2deee595c2ac5e7640.zip | |
Enable block relay when pruning
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 49bcce5ce..0791e3ed0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2281,9 +2281,7 @@ bool ActivateBestChain(CValidationState &state, CBlock *pblock) { int nBlockEstimate = 0; if (fCheckpointsEnabled) nBlockEstimate = Checkpoints::GetTotalBlocksEstimate(chainParams.Checkpoints()); - // Don't relay blocks if pruning -- could cause a peer to try to download, resulting - // in a stalled download if the block file is pruned before the request. - if (nLocalServices & NODE_NETWORK) { + { LOCK(cs_vNodes); BOOST_FOREACH(CNode* pnode, vNodes) if (chainActive.Height() > (pnode->nStartingHeight != -1 ? pnode->nStartingHeight - 2000 : nBlockEstimate)) |