mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-04 18:01:57 +01:00
multi: allow setting target confs for co-op close
This commit adds a new config option: "--coop-close-target-confs" which allows a user to override the default target confirmations of 6 that is used to estimate a fee rate to use during a co-op closure initiated by a remote peer.
This commit is contained in:
@@ -3129,6 +3129,7 @@ func (s *server) peerConnected(conn net.Conn, connReq *connmgr.ConnReq,
|
||||
UnsafeReplay: s.cfg.UnsafeReplay,
|
||||
MaxOutgoingCltvExpiry: s.cfg.MaxOutgoingCltvExpiry,
|
||||
MaxChannelFeeAllocation: s.cfg.MaxChannelFeeAllocation,
|
||||
CoopCloseTargetConfs: s.cfg.CoopCloseTargetConfs,
|
||||
MaxAnchorsCommitFeeRate: chainfee.SatPerKVByte(
|
||||
s.cfg.MaxCommitFeeRateAnchors * 1000).FeePerKWeight(),
|
||||
Quit: s.quit,
|
||||
|
||||
Reference in New Issue
Block a user