mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
special case DoS value == 0 in ProcessMessage()
- prevents unneeded log messages, which could make users think something bad was happening
This commit is contained in:
parent
acb3ebc455
commit
fbed9c9d63
@ -3785,8 +3785,8 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
|
|||||||
if (nEvicted > 0)
|
if (nEvicted > 0)
|
||||||
LogPrint("mempool", "mapOrphan overflow, removed %u tx\n", nEvicted);
|
LogPrint("mempool", "mapOrphan overflow, removed %u tx\n", nEvicted);
|
||||||
}
|
}
|
||||||
int nDoS;
|
int nDoS = 0;
|
||||||
if (state.IsInvalid(nDoS))
|
if (state.IsInvalid(nDoS) && nDoS > 0)
|
||||||
pfrom->Misbehaving(nDoS);
|
pfrom->Misbehaving(nDoS);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3805,8 +3805,8 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
|
|||||||
CValidationState state;
|
CValidationState state;
|
||||||
if (ProcessBlock(state, pfrom, &block))
|
if (ProcessBlock(state, pfrom, &block))
|
||||||
mapAlreadyAskedFor.erase(inv);
|
mapAlreadyAskedFor.erase(inv);
|
||||||
int nDoS;
|
int nDoS = 0;
|
||||||
if (state.IsInvalid(nDoS))
|
if (state.IsInvalid(nDoS) && nDoS > 0)
|
||||||
pfrom->Misbehaving(nDoS);
|
pfrom->Misbehaving(nDoS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user