Skip to content

Commit 2e06482

Browse files
committed
fix: F8 stage 4 — pass per_tx_limit as '"50"' (bare numerics fail the CLI JSON type check; parse_amount strips the quotes by design) and verify the set instead of piping to /dev/null — the unset limit was why the gate never held and every spend ran ungated
1 parent c55064f commit 2e06482

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/demo-f8-testnet.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ say "agent A balance through its module: ${ABAL:-0}"
8888
[ "${ABAL:-0}" != "0" ] || say "STAGE3.5_WARN: A note not synced — pay/gate stages will likely stall"
8989

9090
st "STAGE 4: set agent A per_tx_limit=50 (so a 5 LEZ pay is autonomous, an 80 is held)"
91-
"$LC" --config-dir ~/cfgA call agent_module meta_configure per_tx_limit 50 >/dev/null 2>&1
91+
# NB: bare numerics fail the CLI JSON type check (type must be string); the module's
92+
# parse_amount strips one pair of surrounding quotes, so pass the value as '"50"'.
93+
"$LC" --config-dir ~/cfgA call agent_module meta_configure per_tx_limit '"50"' >~/limitset.log 2>&1
94+
grep -q '"per_tx_limit"' ~/limitset.log && say "per_tx_limit set ok" || say "STAGE4_FAIL: per_tx_limit not set: $(tail -c 200 ~/limitset.log)"
9295
"$LC" --config-dir ~/cfgA call agent_module meta_configure agent_npk "$ANPK" >/dev/null 2>&1
9396

9497
st "STAGE 5: local Waku — two delivery nodes, B statically connects to A"

0 commit comments

Comments
 (0)