|
|
@ -3786,7 +3786,8 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) |
|
|
|
LogPrint("mempool", "mapOrphan overflow, removed %u tx\n", nEvicted); |
|
|
|
LogPrint("mempool", "mapOrphan overflow, removed %u tx\n", nEvicted); |
|
|
|
} |
|
|
|
} |
|
|
|
int nDoS = 0; |
|
|
|
int nDoS = 0; |
|
|
|
if (state.IsInvalid(nDoS) && nDoS > 0) |
|
|
|
if (state.IsInvalid(nDoS)) |
|
|
|
|
|
|
|
if (nDoS > 0) |
|
|
|
pfrom->Misbehaving(nDoS); |
|
|
|
pfrom->Misbehaving(nDoS); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -3806,7 +3807,8 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) |
|
|
|
if (ProcessBlock(state, pfrom, &block)) |
|
|
|
if (ProcessBlock(state, pfrom, &block)) |
|
|
|
mapAlreadyAskedFor.erase(inv); |
|
|
|
mapAlreadyAskedFor.erase(inv); |
|
|
|
int nDoS = 0; |
|
|
|
int nDoS = 0; |
|
|
|
if (state.IsInvalid(nDoS) && nDoS > 0) |
|
|
|
if (state.IsInvalid(nDoS)) |
|
|
|
|
|
|
|
if (nDoS > 0) |
|
|
|
pfrom->Misbehaving(nDoS); |
|
|
|
pfrom->Misbehaving(nDoS); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|