aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2016-07-29 08:20:57 +0200
committerWladimir J. van der Laan <[email protected]>2016-07-29 08:21:03 +0200
commit842bf8d2c5af86bc94e586d8acd5e5ab7c59ddc0 (patch)
treeeeccedf861303b058b2f42836c3255d15e5adcad /src/main.cpp
parentMerge #8412: libconsensus: Expose a flag for BIP112 (diff)
parentIgnore CMPCTBLOCK messages for pruned blocks (diff)
downloaddiscoin-842bf8d2c5af86bc94e586d8acd5e5ab7c59ddc0.tar.xz
discoin-842bf8d2c5af86bc94e586d8acd5e5ab7c59ddc0.zip
Merge #8408: Prevent fingerprinting, disk-DoS with compact blocks
1d06e49 Ignore CMPCTBLOCK messages for pruned blocks (Suhas Daftuar) 1de2a46 Ignore GETBLOCKTXN requests for unknown blocks (Suhas Daftuar)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 8dd703b68..f4e48b706 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -5343,7 +5343,6 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
BlockMap::iterator it = mapBlockIndex.find(req.blockhash);
if (it == mapBlockIndex.end() || !(it->second->nStatus & BLOCK_HAVE_DATA)) {
- Misbehaving(pfrom->GetId(), 100);
LogPrintf("Peer %d sent us a getblocktxn for a block we don't have", pfrom->id);
return true;
}
@@ -5627,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