discovery: pass banThreshold to banman

So we can configure it via gossip's config in a following commit.
This commit is contained in:
yyforyongyu committed 2025-08-04 15:44:35 +08:00
1 parent 343418cfdf
commit 3109a8f3fe
3 files changed
+17 -12

No files matched your search

+1 -1
View File
@@ -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)