Skip to content

Commit 1d06e49

Browse files
committed
Ignore CMPCTBLOCK messages for pruned blocks
Also ignores CMPCTBLOCK announcements that have too little work. This is to prevent disk-exhaustion DoS.
1 parent 1de2a46 commit 1d06e49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5626,8 +5626,8 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
56265626
std::vector<CInv> vInv(1);
56275627
vInv[0] = CInv(MSG_BLOCK, cmpctblock.header.GetHash());
56285628
pfrom->PushMessage(NetMsgType::GETDATA, vInv);
5629-
return true;
56305629
}
5630+
return true;
56315631
}
56325632

56335633
// If we're not close to tip yet, give up and let parallel block fetch work its magic

0 commit comments

Comments
 (0)