multi: add new config ban-threshold

This commit is contained in:
yyforyongyu
2025-07-31 10:41:15 +08:00
parent 3109a8f3fe
commit a6f8617e7c
5 changed files with 25 additions and 1 deletions

View File

@@ -1784,6 +1784,22 @@
; See docs/gossip_rate_limiting.md for mor information.
; gossip.filter-concurrency=5
; The score at which a peer is banned. Each time a peer sends a gossip message
; 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.
;
; A gossip message can be considered invalid for several reasons, including:
; - Invalid signature on the announcement.
; - Stale timestamp, older than what we already have.
; - Too many channel updates for the same channel in a short period.
; - Announcing a channel that is not found on-chain.
; - Announcing a channel that has already been closed.
; - Announcing a channel with an invalid proof.
;
; gossip.ban-threshold=100
[invoices]
; If a hold invoice has accepted htlcs that reach their expiry height and are