Skip to content

Commit fa3999f

Browse files
author
MarcoFalke
committed
net: Reformat excessively long if condition into multiple lines
Can be reviewed with the git option --word-diff-regex=.
1 parent 01b45b2 commit fa3999f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/net_processing.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,8 +1510,11 @@ void static ProcessGetBlockData(CNode& pfrom, const CChainParams& chainparams, c
15101510
const CNetMsgMaker msgMaker(pfrom.GetSendVersion());
15111511
// disconnect node in case we have reached the outbound limit for serving historical blocks
15121512
// never disconnect whitelisted nodes
1513-
if (send && connman->OutboundTargetReached(true) && ( ((pindexBestHeader != nullptr) && (pindexBestHeader->GetBlockTime() - pindex->GetBlockTime() > HISTORICAL_BLOCK_AGE)) || inv.type == MSG_FILTERED_BLOCK) && !pfrom.HasPermission(PF_NOBAN))
1514-
{
1513+
if (send &&
1514+
connman->OutboundTargetReached(true) &&
1515+
(((pindexBestHeader != nullptr) && (pindexBestHeader->GetBlockTime() - pindex->GetBlockTime() > HISTORICAL_BLOCK_AGE)) || inv.type == MSG_FILTERED_BLOCK) &&
1516+
!pfrom.HasPermission(PF_NOBAN)
1517+
) {
15151518
LogPrint(BCLog::NET, "historical block serving limit reached, disconnect peer=%d\n", pfrom.GetId());
15161519

15171520
//disconnect node

0 commit comments

Comments
 (0)