mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-06 04:59:34 +02:00
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:
parent
f6ba5be351
commit
2b1bb3bce0
@ -13,11 +13,13 @@ var getStateCommand = cli.Command{
|
|||||||
Usage: "Get the current state of the wallet and RPC",
|
Usage: "Get the current state of the wallet and RPC",
|
||||||
Description: `
|
Description: `
|
||||||
Get the current state of the wallet. The possible states are:
|
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.
|
- NON_EXISTING: wallet has not yet been initialized.
|
||||||
- LOCKED: wallet is locked.
|
- LOCKED: wallet is locked.
|
||||||
- UNLOCKED: wallet has been unlocked successfully, but the full RPC is
|
- UNLOCKED: wallet was unlocked successfully, but RPC server isn't ready.
|
||||||
not yet ready.
|
- RPC_ACTIVE: RPC server is active but not fully ready for calls.
|
||||||
- RPC_READY: the daemon has started and the RPC is fully available.
|
- SERVER_ACTIVE: RPC server is available and ready to accept calls.
|
||||||
`,
|
`,
|
||||||
Flags: []cli.Flag{},
|
Flags: []cli.Flag{},
|
||||||
Action: actionDecorator(getState),
|
Action: actionDecorator(getState),
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
* Add [private status](https://github.com/lightningnetwork/lnd/pull/6167)
|
* Add [private status](https://github.com/lightningnetwork/lnd/pull/6167)
|
||||||
to pendingchannels response.
|
to pendingchannels response.
|
||||||
|
|
||||||
|
* [Update description for `state` command](https://github.com/lightningnetwork/lnd/pull/6237).
|
||||||
|
|
||||||
## Bug Fixes
|
## Bug Fixes
|
||||||
|
|
||||||
* [Fixed an inactive invoice subscription not removed from invoice
|
* [Fixed an inactive invoice subscription not removed from invoice
|
||||||
|
Loading…
x
Reference in New Issue
Block a user