Repository navigation
fix: run the bitcoin connection check once; 0.3.14:1 → 0.3.14:2 - #12
Conversation
The bitcoind-rpc placeholder's result is fixed for the life of this main context: both the RPC address and the manifest's volume list are read with .const(), so main reruns when either changes. Polling it every minute only logged the same failure 1,440 times a day while Bitcoin lacked the public volume. Run it once with onceTrigger. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
helix-white
left a comment
There was a problem hiding this comment.
Reviewed a136dc8 against main; no correctness issues found. Both placeholder inputs are reactive .const() reads, so onceTrigger removes redundant polling without changing recovery when the RPC binding or public volume appears. Confirmed the pinned SDK 4.1.0 runs this trigger once and preserves the reported status; gracePeriod: 0 remains in place.
The downstream version bump and five localized release notes match the change; the community registry serves 0.3.14:1. The branch merges cleanly, and all four current CI checks passed. No builds or tests run during review.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
|
Thanks Matt, looks good. Tested 0.3.14:2 on my server (StartOS 0.4.2, Knots 29.3, fully scanned mainnet): updated Knots and Monetary View, health checks green, scan results kept, sign-in works. Mounting only the public volume is a welcome change for a read-only app. |
While Bitcoin has no RPC binding, or is too old to publish its
publicvolume, main runs only thebitcoind-rpcplaceholder (Bitcoin connection). Both inputs it reports on, the RPC address and the manifest's volume list, are read with.const(), so its result can't change until main reruns. It polled every 60 s withgracePeriod: 0, and every failure is logged, so an owner who leaves Bitcoin un-updated gets the same error line 1,440 times a day.What changed
trigger: sdk.trigger.onceTriggerin place ofcooldownTrigger(60_000)(it already hadgracePeriod: 0): it reports once and stops, for both the update-Bitcoin failure and the waiting-for-RPC loading state. Recovery is unchanged.0.3.14:2(0.3.14:1is on the community registry), with a one-line release note in all five locales.Checked against the pinned SDK 4.1.0 in
node_modules:onceTriggeryields a single time, soHealthDaemon.runHealthCheckLooprunsfnonce and exits;HealthDaemon.setHealthlogs every displayed failure withconsole.error; andwithGracePerioddefaults to 10 s, so withoutgracePeriod: 0a single early failure would stay displayed asstarting.Existing installs
Nothing to migrate. With a current Bitcoin the placeholder doesn't run and nothing changes.
Verified
npx tsc --noEmit, prettier andrm -rf javascript && make javascript/index.jsare clean. Not box-tested.@MarkSierra, could you take a look when you have a moment?
review effort: 'high'
🤖 Generated with Claude Code