mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-08 22:41:00 +02:00
lncli: add remote reserve flag to openchannel
This commit is contained in:
@ -233,6 +233,13 @@ var openChannelCommand = cli.Command{
|
|||||||
Usage: "(optional) whether a scid-alias channel type" +
|
Usage: "(optional) whether a scid-alias channel type" +
|
||||||
" should be negotiated.",
|
" should be negotiated.",
|
||||||
},
|
},
|
||||||
|
cli.Uint64Flag{
|
||||||
|
Name: "remote_reserve_sats",
|
||||||
|
Usage: "(optional) the minimum number of satoshis we " +
|
||||||
|
"require the remote node to keep as a direct " +
|
||||||
|
"payment. If not specified, a default of 1% " +
|
||||||
|
"of the channel capacity will be used.",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Action: actionDecorator(openChannel),
|
Action: actionDecorator(openChannel),
|
||||||
}
|
}
|
||||||
@ -274,6 +281,7 @@ func openChannel(ctx *cli.Context) error {
|
|||||||
MaxLocalCsv: uint32(ctx.Uint64("max_local_csv")),
|
MaxLocalCsv: uint32(ctx.Uint64("max_local_csv")),
|
||||||
ZeroConf: ctx.Bool("zero_conf"),
|
ZeroConf: ctx.Bool("zero_conf"),
|
||||||
ScidAlias: ctx.Bool("scid_alias"),
|
ScidAlias: ctx.Bool("scid_alias"),
|
||||||
|
RemoteChanReserveSat: ctx.Uint64("remote_reserve_sats"),
|
||||||
}
|
}
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
|
Reference in New Issue
Block a user