From fa9604c46f3245a704487c29b684caadffbf73bc Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Thu, 21 May 2020 10:42:37 -0400 Subject: doc: noban precludes maxuploadtarget disconnects --- src/net_processing.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/net_processing.cpp') diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 18695c8f4..d48745aef 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -1509,11 +1509,10 @@ 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) + !pfrom.HasPermission(PF_NOBAN) // never disconnect nodes with the noban permission ) { LogPrint(BCLog::NET, "historical block serving limit reached, disconnect peer=%d\n", pfrom.GetId()); -- cgit v1.2.3