fix 1.23.8: ladder harness-style wallet serve for coin settle

This commit is contained in:
Hernâni Marques 2026-08-29 02:40:48 +02:00
parent 2451c66173
commit ba899dd8b5
No known key found for this signature in database
GPG key ID: CB5738652768F7E9
8 changed files with 233 additions and 22 deletions

View file

@ -35,6 +35,18 @@ Legend:
---
## 1a. Harness-style wallet daemon (mon ladder + e2e)
| | |
|--|--|
| **Seen** | Ladder `OK_BANK` with `avail=0` while mon e2e / harness get full coins; force-select 400 without `selected_exchange` |
| **Area** | **cli** / **core** / **ops** |
| **Problem** | Harness uses a long-lived **WalletService** (unix socket client). One-shot `wallet-cli` starts and stops the shepherd each call — after bank `transfer_done`, coins often stay `pendingIncoming` until something keeps the wallet awake. `run-until-done` is banned (hangs). |
| **Workaround** | Mon: `advanced serve --unix-path $WSOCK` then `--wallet-connection=$WSOCK` (e2e default; ladder `LADDER_WALLET_SERVE=1` via `ladder/lib_wallet_serve.sh`). Force-select body must be `{"reserve_pub":"…","selected_exchange":"<exchange payto from /keys>"}`. Mint may include `"exchange_url":"$EX"`. Poll balance + bank status; never `run-until-done`. |
| **Wanted** | Documented wallet-cli “serve for automation” profile matching harness WalletClient. |
## 2. Withdraw completion is not observable from CLI alone
| | |