Skip to content

fix: run the bitcoin connection check once; 0.3.14:1 → 0.3.14:2 - #12

Merged
MattDHill merged 1 commit into
mainfrom
fix/bitcoin-check-once
Nov 20, 2026
Merged

MattDHill merged 1 commit into
mainfrom
fix/bitcoin-check-once

Conversation

@MattDHill

Copy link
Copy Markdown
Member

While Bitcoin has no RPC binding, or is too old to publish its public volume, main runs only the bitcoind-rpc placeholder (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 with gracePeriod: 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

  • The placeholder now uses trigger: sdk.trigger.onceTrigger in place of cooldownTrigger(60_000) (it already had gracePeriod: 0): it reports once and stops, for both the update-Bitcoin failure and the waiting-for-RPC loading state. Recovery is unchanged.
  • Version 0.3.14:2 (0.3.14:1 is 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: onceTrigger yields a single time, so HealthDaemon.runHealthCheckLoop runs fn once and exits; HealthDaemon.setHealth logs every displayed failure with console.error; and withGracePeriod defaults to 10 s, so without gracePeriod: 0 a single early failure would stay displayed as starting.

Existing installs

Nothing to migrate. With a current Bitcoin the placeholder doesn't run and nothing changes.

Verified

npx tsc --noEmit, prettier and rm -rf javascript && make javascript/index.js are clean. Not box-tested.

@MarkSierra, could you take a look when you have a moment?

review effort: 'high'

🤖 Generated with Claude Code

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 helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@MattDHill
MattDHill merged commit 092453c into main Nov 20, 2026
4 checks passed
@MattDHill
MattDHill deleted the fix/bitcoin-check-once branch November 20, 2026 20:17
@MarkSierra

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants