aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-05-21 10:41:19 -0400
committerMarcoFalke <falke.marco@gmail.com>2020-06-04 16:39:17 -0400
commitfa3999fe351b510bb141dff9ae4ecc8e717bf292 (patch)
tree4e2ae1b8c706a4fa0770a2d6108abc4c2ddee944 /src
parent01b45b2e016f0b0907929e818216edf7157fb03a (diff)
net: Reformat excessively long if condition into multiple lines
Can be reviewed with the git option --word-diff-regex=.
Diffstat (limited to 'src')
-rw-r--r--src/net_processing.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index e59ab7e560..18695c8f44 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -1510,8 +1510,11 @@ void static ProcessGetBlockData(CNode& pfrom, const CChainParams& chainparams, c
const CNetMsgMaker msgMaker(pfrom.GetSendVersion());
// disconnect node in case we have reached the outbound limit for serving historical blocks
// never disconnect whitelisted nodes
- if (send && connman->OutboundTargetReached(true) && ( ((pindexBestHeader != nullptr) && (pindexBestHeader->GetBlockTime() - pindex->GetBlockTime() > HISTORICAL_BLOCK_AGE)) || inv.type == MSG_FILTERED_BLOCK) && !pfrom.HasPermission(PF_NOBAN))
- {
+ if (send &&
+ connman->OutboundTargetReached(true) &&
+ (((pindexBestHeader != nullptr) && (pindexBestHeader->GetBlockTime() - pindex->GetBlockTime() > HISTORICAL_BLOCK_AGE)) || inv.type == MSG_FILTERED_BLOCK) &&
+ !pfrom.HasPermission(PF_NOBAN)
+ ) {
LogPrint(BCLog::NET, "historical block serving limit reached, disconnect peer=%d\n", pfrom.GetId());
//disconnect node