docs: the F7 save gate and the app-owned chain source
TUI.md: the `last` line's shape when one half of a save is refused, why an app-owned source saves with an empty `url` while a typed endpoint with no login is still refused, and the wording the `chain` row carries in a build without `cuprate-daemon`. WALLET.md: the same gate from the node's side, and the start contract — a start that fails part way stops what it spawned and leaves the chain datadir as the thing a retry reuses.
This commit is contained in:
parent
6c1fc5008a
commit
1e3eceabcb
2 changed files with 41 additions and 6 deletions
|
|
@ -98,7 +98,7 @@ the screen that picks the chain source:
|
|||
| `Ctrl-X` | Stop it (idempotent). |
|
||||
| `Ctrl-R` | Re-read the live node line (`off` / `connecting` / `syncing` / `ready` / `exited`). |
|
||||
| `Enter` | Save the endpoint and chain source without dialling or starting anything. |
|
||||
| `chain` row + `space` | Receive-only / local `monerod` / remote daemon / in-process Cuprate. |
|
||||
| `chain` row + `space` | Receive-only / local `monerod` / remote daemon / in-process Cuprate. In a build without `cuprate-daemon` the row carries the `rebuild with --features cuprate-daemon` wording; the pick is still offered. |
|
||||
| `network` row + `space` | In-process network: mainnet (unvalidated) or testnet. |
|
||||
|
||||
State shown: `off` / `connecting` / `syncing` / `ready` / `exited`, plus a
|
||||
|
|
@ -113,7 +113,22 @@ Once a probe has read the daemon, the line can include `sync <height>/<target>`
|
|||
`get_info`, or the local daemon's `get_info` when wallet RPC does not answer).
|
||||
`sync 0/0` or no segment means **unknown**, not caught up.
|
||||
|
||||
`start` is idempotent: a live child is reported, not respawned.
|
||||
`start` is idempotent: a live child is reported, not respawned. A start that
|
||||
fails part way is **all or nothing**: whatever that call spawned — the in-process
|
||||
daemon, a `monerod`, the SOCKS child, the wallet RPC — is stopped before the
|
||||
error is handed back (`WalletChild::start_with_creds`), because the caller
|
||||
receives the error rather than the client, so a daemon left running would have no
|
||||
owner and no handle, and would hold `18081` against the next start. The same
|
||||
contract is asserted one level up
|
||||
(`node::tests::a_missing_binary_fails_the_start_and_leaves_no_child`), and what a
|
||||
retry reuses is the chain **datadir** on disk, never a process that outlived its
|
||||
owner.
|
||||
|
||||
A save on an app-owned source needs no `url`/`login`: the child the app spawns
|
||||
generates its own RPC creds and picks its own port, and
|
||||
`Node::start_wallet_child_with` replaces the stored client after the spawn. A
|
||||
typed endpoint with no login is still refused (`Wallet::from_config`), and the
|
||||
screen reports both halves of a save on one line. See `docs/TUI.md`.
|
||||
|
||||
## Chain source
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue