diff options
author | Suhas Daftuar <sdaftuar@chaincode.com> | 2016-07-26 16:52:35 -0400 |
---|---|---|
committer | Suhas Daftuar <sdaftuar@chaincode.com> | 2016-07-26 16:52:35 -0400 |
commit | 1d06e49834814eed45e07393dcffd7b6683311b2 (patch) | |
tree | 10264dd9ee63a38b6d9881e23c8c4fa004504409 /src | |
parent | 1de2a46632946990a7863020b61172232f8c5796 (diff) | |
download | bitcoin-1d06e49834814eed45e07393dcffd7b6683311b2.tar.xz |
Ignore CMPCTBLOCK messages for pruned blocks
Also ignores CMPCTBLOCK announcements that have too little work. This is to
prevent disk-exhaustion DoS.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 4675127ec3..b41a719552 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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 |