mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 06:07:16 +01:00
multi: allow disable banning peers
When users set `gossip.ban-threshold` to 0, it's now treated as setting the ban score to max uint64, which effectively disables the banning. We still want to record the peer's ban score in case we need it for future debugging.
This commit is contained in:
@@ -1788,7 +1788,8 @@
|
||||
; that is considered invalid, its ban score is incremented. Once the score
|
||||
; reaches this threshold, the peer is banned for a default of 48 hours, and we
|
||||
; will no longer process gossip messages from them. This is a measure to
|
||||
; protect the node from spam and misbehaving peers.
|
||||
; protect the node from spam and misbehaving peers. Setting this value to 0
|
||||
; disables banning completely.
|
||||
;
|
||||
; A gossip message can be considered invalid for several reasons, including:
|
||||
; - Invalid signature on the announcement.
|
||||
|
||||
Reference in New Issue
Block a user