Skip to content

Consolidate Bitcoin Core sync logs into a single progress display #1211

@theguysaccount

Description

@theguysaccount

Problem

During ./start-node, the backing Bitcoin Core containers (btc-node, tbtc-node, signet-node, …) each emit one UpdateTip … progress= log line per block during initial block download. This produces a multi-thousand-line firehose that buries the Gatekeeper / Keymaster / IPFS logs and makes it hard to tell how far along a sync actually is.

Proposal

Add a small, zero-dependency helper that consumes the docker compose log stream and renders a single in-place progress view: one combined OVERALL bar plus a per-chain bar (with block height and date). It would live alongside the existing scripts/btc-logs / scripts/signet-logs helpers.

Acceptance criteria

  • Reads compose log output from stdin; no changes to existing services.
  • Shows live progress per chain and an overall bar, updated in place (no scrollback spam).
  • No new runtime dependencies (Node stdlib only).
  • Usage documented: docker compose logs -f | node scripts/sync-progress.mjs.

Notes

A more robust long-term approach would poll each node's getblockchaininfo (verificationprogress) over RPC instead of scraping stdout; open to that direction if preferred.

Implementation proposed in #1210.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions