lncli: update lncli state description

This updates the description that is provided for `lncli state` to match
the states that are currently returned by lnd. `RPC_READY` no longer
exists and is replaced by `RPC_ACTIVE` with a revised description, and
`SERVER_ACTIVE` is added as the status that indicates lnd is fully
ready to accept RPC calls.

See `enum WalletState` in `stateservice.proto`.
This commit is contained in:
Daniel McNally 2022-02-04 08:31:15 -05:00
parent f6ba5be351
commit 2b1bb3bce0
No known key found for this signature in database
GPG Key ID: BC19D851B2FC3A00
2 changed files with 7 additions and 3 deletions

View File

@ -13,11 +13,13 @@ var getStateCommand = cli.Command{
Usage: "Get the current state of the wallet and RPC",
Description: `
Get the current state of the wallet. The possible states are:
- WAITING_TO_START: node is waiting to become the leader in a cluster
and is not started yet.
- NON_EXISTING: wallet has not yet been initialized.
- LOCKED: wallet is locked.
- UNLOCKED: wallet has been unlocked successfully, but the full RPC is
not yet ready.
- RPC_READY: the daemon has started and the RPC is fully available.
- UNLOCKED: wallet was unlocked successfully, but RPC server isn't ready.
- RPC_ACTIVE: RPC server is active but not fully ready for calls.
- SERVER_ACTIVE: RPC server is available and ready to accept calls.
`,
Flags: []cli.Flag{},
Action: actionDecorator(getState),

View File

@ -16,6 +16,8 @@
* Add [private status](https://github.com/lightningnetwork/lnd/pull/6167)
to pendingchannels response.
* [Update description for `state` command](https://github.com/lightningnetwork/lnd/pull/6237).
## Bug Fixes
* [Fixed an inactive invoice subscription not removed from invoice