mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
Ignore GETBLOCKTXN requests for unknown blocks
Don't disconnect peers, or else we leak information that could be used for fingerprinting.
This commit is contained in:
parent
beadffae6d
commit
1de2a46632
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user