Skip to content

Commit

Permalink
Ignore CMPCTBLOCK messages for pruned blocks
Browse files Browse the repository at this point in the history
Also ignores CMPCTBLOCK announcements that have too little work.  This is to
prevent disk-exhaustion DoS.
  • Loading branch information
sdaftuar committed Jul 26, 2016
1 parent 1de2a46 commit 1d06e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Expand Up @@ -5626,8 +5626,8 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
std::vector<CInv> vInv(1);
vInv[0] = CInv(MSG_BLOCK, cmpctblock.header.GetHash());
pfrom->PushMessage(NetMsgType::GETDATA, vInv);
return true;
}
return true;
}

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

0 comments on commit 1d06e49

Please sign in to comment.