mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-17 18:40:09 +00:00
style-police: fixed badly readable code in ProcessMessage()
- I introduced the problem and fixed it with better readable code
This commit is contained in:
parent
695a722003
commit
5ea66c54fb
10
src/main.cpp
10
src/main.cpp
@ -3786,8 +3786,9 @@ 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))
|
||||||
pfrom->Misbehaving(nDoS);
|
if (nDoS > 0)
|
||||||
|
pfrom->Misbehaving(nDoS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -3806,8 +3807,9 @@ 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))
|
||||||
pfrom->Misbehaving(nDoS);
|
if (nDoS > 0)
|
||||||
|
pfrom->Misbehaving(nDoS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user