From 81c1e73785b1d8ad6e02d534dfbc7df6beaa3e96 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sat, 7 Aug 2021 10:42:45 +0700 Subject: [PATCH] Invariant: if no notification, then no pools growth --- txpool/pool.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/txpool/pool.go b/txpool/pool.go index 85ce00286..cef426649 100644 --- a/txpool/pool.go +++ b/txpool/pool.go @@ -840,12 +840,6 @@ func (l *recentlyConnectedPeers) GetAndClean() []PeerID { return peers } -func max(a, b uint64) uint64 { - if a >= b { - return a - } - return b -} func min(a, b uint64) uint64 { if a <= b { return a