mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 01:36:24 +01:00
lnwallet: decrease initial revocation window to 4
This commit is contained in:
parent
56fb414767
commit
14d669dfd1
1 changed files with 9 additions and 3 deletions
|
@ -25,12 +25,18 @@ var (
|
|||
)
|
||||
|
||||
const (
|
||||
// MaxPendingPayments
|
||||
// MaxPendingPayments is the max number of pending HTLC's permitted on
|
||||
// a channel.
|
||||
// TODO(roasbeef): make not random value + enforce
|
||||
// * should be tuned to account for max tx "cost"
|
||||
MaxPendingPayments = 100
|
||||
|
||||
// InitialRevocationWindow...
|
||||
InitialRevocationWindow = 16
|
||||
// InitialRevocationWindow is the number of unrevoked commitment
|
||||
// transactions allowed within the commitment chain. This value allows
|
||||
// a greater degree of desynchronization by allowing either parties to
|
||||
// extend the other's commitment chain non-interactively, and also
|
||||
// serves as a flow control mechanism to a degree.
|
||||
InitialRevocationWindow = 4
|
||||
)
|
||||
|
||||
// channelState is an enum like type which represents the current state of a
|
||||
|
|
Loading…
Add table
Reference in a new issue