diff options
| author | Wladimir J. van der Laan <[email protected]> | 2013-10-07 01:26:59 -0700 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2013-10-07 01:26:59 -0700 |
| commit | 5fc1700fb031e1016157715f7a244ccc5b775762 (patch) | |
| tree | 2990534589a0a8550a78fc4606ae592e34bb3902 /src/main.cpp | |
| parent | Merge pull request #3056 from Diapolo/stuck_debug_window (diff) | |
| parent | style-police: fixed badly readable code in ProcessMessage() (diff) | |
| download | discoin-5fc1700fb031e1016157715f7a244ccc5b775762.tar.xz discoin-5fc1700fb031e1016157715f7a244ccc5b775762.zip | |
Merge pull request #3064 from Diapolo/style
style-police: fixed badly readable code in ProcessMessage()
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index dcf0ee01a..ed40a3550 100644 --- a/src/main.cpp +++ b/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); } int nDoS = 0; - if (state.IsInvalid(nDoS) && nDoS > 0) - pfrom->Misbehaving(nDoS); + if (state.IsInvalid(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)) mapAlreadyAskedFor.erase(inv); int nDoS = 0; - if (state.IsInvalid(nDoS) && nDoS > 0) - pfrom->Misbehaving(nDoS); + if (state.IsInvalid(nDoS)) + if (nDoS > 0) + pfrom->Misbehaving(nDoS); } |