diff options
| author | MarcoFalke <[email protected]> | 2020-09-08 08:03:01 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-09-08 07:55:11 +0200 |
| commit | fa7e407b504bc60c77341f02636ed9d6a4b53d79 (patch) | |
| tree | decea0186288e79a84a57e967da16c28d9ee3d4a /src/net_processing.h | |
| parent | Merge #19791: [net processing] Move Misbehaving() to PeerManager (diff) | |
| download | discoin-fa7e407b504bc60c77341f02636ed9d6a4b53d79.tar.xz discoin-fa7e407b504bc60c77341f02636ed9d6a4b53d79.zip | |
Do not pass chain params to CheckForStaleTipAndEvictPeers twice
Diffstat (limited to 'src/net_processing.h')
| -rw-r--r-- | src/net_processing.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.h b/src/net_processing.h index 520f7489e..3e748c0c5 100644 --- a/src/net_processing.h +++ b/src/net_processing.h @@ -76,7 +76,7 @@ public: /** Consider evicting an outbound peer based on the amount of time they've been behind our tip */ void ConsiderEviction(CNode& pto, int64_t time_in_seconds) EXCLUSIVE_LOCKS_REQUIRED(cs_main); /** Evict extra outbound peers. If we think our tip may be stale, connect to an extra outbound */ - void CheckForStaleTipAndEvictPeers(const Consensus::Params &consensusParams); + void CheckForStaleTipAndEvictPeers(); /** If we have extra outbound peers, try to disconnect the one with the oldest block announcement */ void EvictExtraOutboundPeers(int64_t time_in_seconds) EXCLUSIVE_LOCKS_REQUIRED(cs_main); /** Retrieve unbroadcast transactions from the mempool and reattempt sending to peers */ |