mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
lnwallet: decrease initial revocation window to 4
This commit is contained in:
parent
56fb414767
commit
14d669dfd1
@ -25,12 +25,18 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// MaxPendingPayments
|
// MaxPendingPayments is the max number of pending HTLC's permitted on
|
||||||
|
// a channel.
|
||||||
// TODO(roasbeef): make not random value + enforce
|
// TODO(roasbeef): make not random value + enforce
|
||||||
|
// * should be tuned to account for max tx "cost"
|
||||||
MaxPendingPayments = 100
|
MaxPendingPayments = 100
|
||||||
|
|
||||||
// InitialRevocationWindow...
|
// InitialRevocationWindow is the number of unrevoked commitment
|
||||||
InitialRevocationWindow = 16
|
// 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
|
// channelState is an enum like type which represents the current state of a
|
||||||
|
Loading…
Reference in New Issue
Block a user