Skip to content

Report a bitcoind client version in getnetworkinfo.#8

Open
echennells wants to merge 1 commit into
bitcoind-getnetworkinfo-conformancefrom
bitcoind-getnetworkinfo-version
Open

Report a bitcoind client version in getnetworkinfo.#8
echennells wants to merge 1 commit into
bitcoind-getnetworkinfo-conformancefrom
bitcoind-getnetworkinfo-version

Conversation

@echennells

@echennells echennells commented Jun 15, 2026

Copy link
Copy Markdown
Owner

getnetworkinfo reports version: 0. Typed clients of the bitcoind RPC — rust-bitcoincore-rpc, and the tools built on it such as ord and BDK — read this field and treat any value below 190000 as a pre-0.19 daemon, switching to a legacy parse path this interface does not emit. The client aborts during startup, before any other field is consulted.

This reports 280000, which clears the startup path. The value is a placeholder pending the decision below; a // TODO: marks deriving it from settings.

Decision requested: should the bitcoind RPC report a version integer at all — reporting one claims a specific daemon version — and if so, should the value be fixed (280000), operator-configurable, or tracked to a target release? This is the only field in the getnetworkinfo set that needs a policy decision rather than a mechanical fix.

Testing: getnetworkinfo__fields asserts version is an integer >= 190000. Full suite green (make check, 534 cases) on a synced testnet3 node.

@echennells echennells force-pushed the bitcoind-getnetworkinfo-version branch 2 times, most recently from 4e64d64 to 25fcc36 Compare June 16, 2026 01:57
@echennells echennells force-pushed the bitcoind-getnetworkinfo-conformance branch from 4f7c000 to 39b4d92 Compare June 17, 2026 23:12
@echennells echennells force-pushed the bitcoind-getnetworkinfo-version branch from 25fcc36 to 6b33dcc Compare June 17, 2026 23:12
@echennells echennells force-pushed the bitcoind-getnetworkinfo-conformance branch from 39b4d92 to 14ee154 Compare June 17, 2026 23:21
@echennells echennells force-pushed the bitcoind-getnetworkinfo-version branch from 6b33dcc to 2885dc1 Compare June 17, 2026 23:21
@echennells echennells force-pushed the bitcoind-getnetworkinfo-conformance branch from 14ee154 to 4edd650 Compare June 28, 2026 01:11
@echennells echennells force-pushed the bitcoind-getnetworkinfo-version branch from 2885dc1 to e4f2675 Compare June 28, 2026 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant