Skip to content

Commit

Permalink
Ignore GETBLOCKTXN requests for unknown blocks
Browse files Browse the repository at this point in the history
Don't disconnect peers, or else we leak information that could be
used for fingerprinting.
  • Loading branch information
sdaftuar committed Jul 26, 2016
1 parent beadffa commit 1de2a46
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1de2a46

Please sign in to comment.