Documentation
¶
Overview ¶
Command chainprobe drives x/appmining's whole message surface against a live node: one real, signed transaction per Msg, plus the negative cases that must be rejected by the keeper rather than only by a unit test.
It exists because `go test -c ./tests/e2e` cannot cross-compile: the e2e package pulls testutil -> wasmd keeper test helpers, and wasmd's test_common.go does not build against this repo's wasmd revision. A plain main package builds cleanly with CGO_ENABLED=0, so the node-side half of the audit ships as this binary instead of a test binary.
It mutates the node's appmining params (short challenge window, legacy flow unpaused) because production defaults park the lifecycle: a 1500-block window plus attestation_paused=true makes "submit and finalize" unreachable in a short run. The original params are captured first and restored on every exit path, including panic.
UPTICK_CHAIN_REST=http://127.0.0.1:1317 \ UPTICK_CHAIN_ID=origin_1170-3 UPTICK_CHAIN_DENOM=auoc \ UPTICK_CHAIN_HOME=/home/ubuntu/.uptickd UPTICK_CHAIN_KEY=authority \ UPTICK_CHAIN_OUT=/tmp/appmining-chain-surface.json \ ./chainprobe