Skip to content

Commit 3d9c70c

Browse files
committed
Stop always storing blocks from whitelisted peers
There is no reason to wish to store blocks on disk always just because a peer is whitelisted. This appears to be a historical quirk to avoid breaking things when the accept limits were added.
1 parent 3b4ac43 commit 3d9c70c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2480,11 +2480,7 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
24802480

24812481
LogPrint(BCLog::NET, "received block %s peer=%d\n", pblock->GetHash().ToString(), pfrom->GetId());
24822482

2483-
// Process all blocks from whitelisted peers, even if not requested,
2484-
// unless we're still syncing with the network.
2485-
// Such an unrequested block may still be processed, subject to the
2486-
// conditions in AcceptBlock().
2487-
bool forceProcessing = pfrom->fWhitelisted && !IsInitialBlockDownload();
2483+
bool forceProcessing = false;
24882484
const uint256 hash(pblock->GetHash());
24892485
{
24902486
LOCK(cs_main);

0 commit comments

Comments
 (0)