lncli: chan_point option for updatechanstatus

This commit is contained in:
Slyghtning 2022-07-06 10:19:12 -04:00
parent 738241d5fa
commit 86f1bc7db0
2 changed files with 14 additions and 4 deletions

View file

@ -37,13 +37,18 @@ var updateChanStatusCommand = cli.Command{
}, },
cli.IntFlag{ cli.IntFlag{
Name: "output_index", Name: "output_index",
Usage: "the output index for the funding output of the funding " + Usage: "the output index for the funding output of " +
"transaction", "the funding transaction",
},
cli.StringFlag{
Name: "chan_point",
Usage: "the channel whose status should be updated. " +
"Takes the form of: txid:output_index",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "action", Name: "action",
Usage: `the action to take: must be one of "enable", "disable", ` + Usage: `the action to take: must be one of "enable", ` +
`or "auto"`, `"disable", or "auto"`,
}, },
}, },
Action: actionDecorator(updateChanStatus), Action: actionDecorator(updateChanStatus),

View file

@ -16,6 +16,10 @@
addholdinvoice`](https://github.com/lightningnetwork/lnd/pull/6577). Users now addholdinvoice`](https://github.com/lightningnetwork/lnd/pull/6577). Users now
need to explicitly specify the `--private` flag. need to explicitly specify the `--private` flag.
* [Add `chan_point` flag to
`updatechanstatus`](https://github.com/lightningnetwork/lnd/pull/6705)
to offer a convenient way to specify the channel to be updated.
## Database ## Database
* [Delete failed payment attempts](https://github.com/lightningnetwork/lnd/pull/6438) * [Delete failed payment attempts](https://github.com/lightningnetwork/lnd/pull/6438)
@ -77,6 +81,7 @@
* Elle Mouton * Elle Mouton
* ErikEk * ErikEk
* Eugene Siegel * Eugene Siegel
* Slyghtning
* Oliver Gugger * Oliver Gugger
* Priyansh Rastogi * Priyansh Rastogi
* Tommy Volk * Tommy Volk