You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(e2e): gate Fulmine liquidity on spendable VTXOs, recover via settle (#130)
EnsureArkLiquidity gated on Fulmine's raw /api/v1/balance, which also counts
VTXOs that have passed their renewal deadline. On the regtest stack VTXOs live
only ~50 minutes, so on any long-lived stack Fulmine's balance looks healthy
while every offchain send fails with {"code":2,"message":"missing vtxos"} —
and since SendArkdNoteTo funds nearly every E2E fixture through this helper,
the whole suite collapses with instant InternalServerError failures while the
helper keeps declaring liquidity sufficient.
Gate on the spendable subset instead: sum /api/v1/vtxos entries that are not
spent, not swept, and at least a minute from expiry (falling back to the raw
balance if the endpoint is unavailable). Recovery is a settle — a settle round
re-anchors expired/recoverable funds into a fresh spendable set — so only
board fresh BTC when the wallet is genuinely underfunded rather than merely
stale.
Verified locally: healthy path 5x green (probe logs spendable=raw, immediate
return); recovery path proven manually (fund boarding + /api/v1/settle
restored a faucet stuck on "missing vtxos", after which the full E2E suite
went 50/50 green).
0 commit comments