Skip to content

Commit 1de2a46

Browse files
committed
Ignore GETBLOCKTXN requests for unknown blocks
Don't disconnect peers, or else we leak information that could be used for fingerprinting.
1 parent beadffa commit 1de2a46

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5343,7 +5343,6 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
53435343

53445344
BlockMap::iterator it = mapBlockIndex.find(req.blockhash);
53455345
if (it == mapBlockIndex.end() || !(it->second->nStatus & BLOCK_HAVE_DATA)) {
5346-
Misbehaving(pfrom->GetId(), 100);
53475346
LogPrintf("Peer %d sent us a getblocktxn for a block we don't have", pfrom->id);
53485347
return true;
53495348
}

0 commit comments

Comments
 (0)