discovery: pass banThreshold to banman
So we can configure it via gossip's config in a following commit.
This commit is contained in:
3 files changed
+17
-12
No files matched your search
@@ -586,7 +586,7 @@ func New(cfg Config, selfKeyDesc *keychain.KeyDescriptor) *AuthenticatedGossiper
|
||||
maxRejectedUpdates,
|
||||
),
|
||||
chanUpdateRateLimiter: make(map[uint64][2]*rate.Limiter),
|
||||
banman: newBanman(),
|
||||
banman: newBanman(DefaultBanThreshold),
|
||||
}
|
||||
|
||||
gossiper.vb = NewValidationBarrier(1000, gossiper.quit)
|
||||
|
||||
Reference in new issue
Block a user