mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 18:53:23 -03:00
Merge pull request #3064 from Diapolo/style
style-police: fixed badly readable code in ProcessMessage()
This commit is contained in:
commit
5fc1700fb0
1 changed files with 6 additions and 4 deletions
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…
Add table
Reference in a new issue