aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@chaincode.com>2016-07-26 16:52:35 -0400
committerSuhas Daftuar <sdaftuar@chaincode.com>2016-07-26 16:52:35 -0400
commit1d06e49834814eed45e07393dcffd7b6683311b2 (patch)
tree10264dd9ee63a38b6d9881e23c8c4fa004504409 /src/main.cpp
parent1de2a46632946990a7863020b61172232f8c5796 (diff)
downloadbitcoin-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/main.cpp')
-rw-r--r--src/main.cpp2
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