Skip to content

Commit ae6f957

Browse files
committed
Enable block relay when pruning
1 parent 0da6ae2 commit ae6f957

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2281,9 +2281,7 @@ bool ActivateBestChain(CValidationState &state, CBlock *pblock) {
22812281
int nBlockEstimate = 0;
22822282
if (fCheckpointsEnabled)
22832283
nBlockEstimate = Checkpoints::GetTotalBlocksEstimate(chainParams.Checkpoints());
2284-
// Don't relay blocks if pruning -- could cause a peer to try to download, resulting
2285-
// in a stalled download if the block file is pruned before the request.
2286-
if (nLocalServices & NODE_NETWORK) {
2284+
{
22872285
LOCK(cs_vNodes);
22882286
BOOST_FOREACH(CNode* pnode, vNodes)
22892287
if (chainActive.Height() > (pnode->nStartingHeight != -1 ? pnode->nStartingHeight - 2000 : nBlockEstimate))

0 commit comments

Comments
 (0)