mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-07 14:00:08 +02:00
lncli: allow setting max local csv for open channel requests
This commit is contained in:
@ -135,6 +135,13 @@ var openChannelCommand = cli.Command{
|
|||||||
"not set, we will scale the value according to the " +
|
"not set, we will scale the value according to the " +
|
||||||
"channel size",
|
"channel size",
|
||||||
},
|
},
|
||||||
|
cli.Uint64Flag{
|
||||||
|
Name: "max_local_csv",
|
||||||
|
Usage: "(optional) the maximum number of blocks that " +
|
||||||
|
"we will allow the remote peer to require we " +
|
||||||
|
"wait before accessing our funds in the case " +
|
||||||
|
"of a unilateral close.",
|
||||||
|
},
|
||||||
cli.Uint64Flag{
|
cli.Uint64Flag{
|
||||||
Name: "min_confs",
|
Name: "min_confs",
|
||||||
Usage: "(optional) the minimum number of confirmations " +
|
Usage: "(optional) the minimum number of confirmations " +
|
||||||
@ -207,6 +214,7 @@ func openChannel(ctx *cli.Context) error {
|
|||||||
SpendUnconfirmed: minConfs == 0,
|
SpendUnconfirmed: minConfs == 0,
|
||||||
CloseAddress: ctx.String("close_address"),
|
CloseAddress: ctx.String("close_address"),
|
||||||
RemoteMaxValueInFlightMsat: ctx.Uint64("remote_max_value_in_flight_msat"),
|
RemoteMaxValueInFlightMsat: ctx.Uint64("remote_max_value_in_flight_msat"),
|
||||||
|
MaxLocalCsv: uint32(ctx.Uint64("max_local_csv")),
|
||||||
}
|
}
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
|
Reference in New Issue
Block a user