Skip to content

node: Add a getTip RPC for the chain tip - #85

Merged
rustaceanrob merged 1 commit into
kernel-node:masterfrom
pzafonte:itest-gettip
Jul 20, 2026
Merged

node: Add a getTip RPC for the chain tip#85
rustaceanrob merged 1 commit into
kernel-node:masterfrom
pzafonte:itest-gettip

Conversation

@pzafonte

@pzafonte pzafonte commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Nothing on the control socket reports the node's chain position, so tests can see it peer with Bitcoin Core but not that it followed the chain. Add getTip, returning the active chain height and best block hash, and a chain tip subcommand to the cli to print them.

Depends on #78
Followup #86

@rustaceanrob

Copy link
Copy Markdown
Contributor

Merged #78

@pzafonte
pzafonte marked this pull request as ready for review July 20, 2026 13:43
Comment thread capnp/server.capnp Outdated
Nothing on the control socket reports the node's chain position, so
tests can see it peer with Bitcoin Core but not that it followed the
chain. Add a Chain interface in its own schema with a getTip method
that returns the active chain height and best block hash, handed out
by makeChain the same way the wallet is, plus a chain tip subcommand
to the cli to print it.

@rustaceanrob rustaceanrob left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@rustaceanrob
rustaceanrob merged commit e246f30 into kernel-node:master Jul 20, 2026
2 checks passed
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.

2 participants