Repository navigation
add: getblockchaininfo RPC support - #321
Merged
0xB10C merged 1 commit intoJan 19, 2026
Merged
Conversation
0xB10C
self-requested a review
December 24, 2025 14:05
10 of 11 tasks
0xB10C
marked this pull request as draft
January 5, 2026 16:06
Collaborator
|
Since this depends on #319, I'm marking this as a draft for now. |
Collaborator
|
With #319 merged, this can be rebased :) |
Contributor
Author
|
Hey 0xB10C! I'll rebase this PR shortly. Sorry for the delay, I was caught up with the Boss's challenges :) |
GuiSchet
force-pushed
the
rpc-extractor-getblockchaininfo
branch
from
January 17, 2026 02:57
1f335a7 to
5872cef
Compare
Contributor
Author
|
Changes since rebase:
|
0xB10C
force-pushed
the
rpc-extractor-getblockchaininfo
branch
from
January 17, 2026 09:06
22641e8 to
36635d3
Compare
0xB10C
marked this pull request as ready for review
January 17, 2026 09:07
0xB10C
reviewed
Jan 17, 2026
Comment on lines
+502
to
+503
| ig!(rpc_blockchaininfo_blocks, "Height of the most-work fully-validated chain from getblockchaininfo.", registry); | ||
| ig!(rpc_blockchaininfo_headers, "Current number of headers validated from getblockchaininfo.", registry); |
Collaborator
There was a problem hiding this comment.
Nice. I want to add some alerting for this in a followup: when we have more headers than blocks, but rpc_blockchaininfo_initial_block_download is 0, there might be a problem
0xB10C
reviewed
Jan 17, 2026
0xB10C
reviewed
Jan 17, 2026
0xB10C
reviewed
Jan 17, 2026
0xB10C
force-pushed
the
rpc-extractor-getblockchaininfo
branch
from
January 17, 2026 12:08
36635d3 to
3a95178
Compare
Collaborator
|
addresses my review comments and added the following metrics: |
0xB10C
reviewed
Jan 19, 2026
0xB10C
reviewed
Jan 19, 2026
0xB10C
force-pushed
the
rpc-extractor-getblockchaininfo
branch
from
January 19, 2026 12:28
3a95178 to
0fab6c6
Compare
Collaborator
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add getblockchaininfo RPC Support
This PR adds support for extracting and monitoring
getblockchaininfoRPC data, following the same pattern established for other RPC extractors.Changes
getblockchaininfoquery and NATS publishing inextractors/rpcBlockchainInfomessage definition with all relevant fieldsrpc_blockchaininfo_blocks- Current block heightrpc_blockchaininfo_headers- Current header countrpc_blockchaininfo_difficulty- Current difficultyrpc_blockchaininfo_verification_progress- Sync progress [0..1]rpc_blockchaininfo_initial_block_download- IBD status (0/1)rpc_blockchaininfo_size_on_disk- Disk usage in bytesrpc_blockchaininfo_pruned- Pruning status (0/1)rpc_blockchaininfo_warnings- Warnings present (0/1)Privacy Considerations
Similar to
getnetworkinfo, this implementation follows a privacy-conscious approach:Low Risk Fields (exposed in both NATS and Prometheus):
Moderate Risk Fields (exposed in NATS, not in Prometheus):
bestblockhash- Could aid in fingerprinting specific node statechainwork- Total work calculation (could help identify node)time/mediantime- Block timestamps (could aid temporal fingerprinting)chain- Network identifier (main/test/regtest)pruneheight/prune_target_size- Pruning configuration detailsRecommendations:
getnetworkinfosince no network identifiers are exposed