fix(monitoring): warn and continue on wallet 7006 (no denoms)

This commit is contained in:
Hernâni Marques 2026-07-16 20:38:37 +02:00
parent e3d03edb71
commit f9e3b7a515
No known key found for this signature in database

View file

@ -291,12 +291,18 @@ for AMT in "$@"; do
ok "accept-uri $AMT ${ms_accept}ms" ok "accept-uri $AMT ${ms_accept}ms"
else else
ms_accept=$(elapsed_ms "$t0") ms_accept=$(elapsed_ms "$t0")
note="accept-uri failed: $(tail -c 160 "$SCRATCH/accept-$tag.out" | tr '\n' ' ')" note="accept-uri failed: $(tail -c 200 "$SCRATCH/accept-$tag.out" | tr '\n' ' ')"
ms_total=$(elapsed_ms "$t_rung") ms_total=$(elapsed_ms "$t_rung")
# Wallet 7006: no denominations for this amount (0, sub-denom dust, etc.) — warn & continue
if [ "$IS_ZERO" = "1" ] || grep -qE 'code: 7006|"code"[[:space:]]*:[[:space:]]*7006|No denominations could be selected' \
"$SCRATCH/accept-$tag.out" 2>/dev/null; then
if [ "$IS_ZERO" = "1" ]; then if [ "$IS_ZERO" = "1" ]; then
# GOA:0 often has no denominations — probe only, do not stop the ladder
status="ZERO_SKIP" status="ZERO_SKIP"
note="zero-withdraw skip (no denoms / accept failed): $note" note="zero-withdraw skip (7006 / no denoms): $note"
else
status="SKIP_DENOM"
note="skip amount (wallet 7006 no denoms): $note"
fi
warn wallet "accept $AMT" "$note" warn wallet "accept $AMT" "$note"
echo -e "${rung}\t${range_note}\t${AMT}\t${status}\t${ms_mint}\t${ms_accept}\t${ms_confirm}\t${ms_settle}\t${ms_total}\t${WID}\t${note}" >>"$TSV" echo -e "${rung}\t${range_note}\t${AMT}\t${status}\t${ms_mint}\t${ms_accept}\t${ms_confirm}\t${ms_settle}\t${ms_total}\t${WID}\t${note}" >>"$TSV"
continue continue