diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-05-21 10:42:37 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-06-04 16:39:23 -0400 |
commit | fa9604c46f3245a704487c29b684caadffbf73bc (patch) | |
tree | 190637c73190b8582ce66f338922ce6ff4c14152 /src/net_processing.cpp | |
parent | fa3999fe351b510bb141dff9ae4ecc8e717bf292 (diff) |
doc: noban precludes maxuploadtarget disconnects
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r-- | src/net_processing.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 18695c8f44..d48745aef2 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()); |