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

@ -371,12 +371,14 @@ ladder_wait_available() {
info pay "timer 0s left — stop waiting (available still ${CUR}:0)"
break
fi
# nudge wallet (same DB); do not run-until-done (can hang)
# serve: shepherd already running (harness-style). one-shot: bounded run-pending.
wcli transactions >"$SCRATCH/tx-wait-pay.out" 2>&1 || true
if command -v timeout >/dev/null 2>&1 || command -v gtimeout >/dev/null 2>&1; then
local _to
_to=$(command -v gtimeout 2>/dev/null || command -v timeout)
"$_to" 8 wcli advanced run-pending >"$SCRATCH/run-pending.out" 2>&1 || true
if [ -z "${WSERVE_PID:-}" ] || [ ! -S "${WSOCK:-}" ]; then
if command -v timeout >/dev/null 2>&1 || command -v gtimeout >/dev/null 2>&1; then
local _to
_to=$(command -v gtimeout 2>/dev/null || command -v timeout)
"$_to" 8 wcli advanced run-pending >"$SCRATCH/run-pending.out" 2>&1 || true
fi
fi
# progress board every ~5s (tick every 2s → every 3rd)
if [ $((tick % 3)) -eq 0 ]; then