Repository navigation
fix(types): use f64 for GetChainTxStats tx_rate field - #430
Merged
Merged
Conversation
Bitcoin Core has always returned txrate as a double since the RPC was added in v0.15 (PR #9733).
jamillambert
previously approved these changes
Dec 16, 2025
jamillambert
left a comment
Collaborator
There was a problem hiding this comment.
ACK 687119b
Thanks for the fix.
Collaborator
|
This should also be tested. It can be added to this PR or as a follow up. |
Change to a Default wallet and fund/mine so we get transactions for `GetChainTxStats` to report meaningful data.
Contributor
Author
|
Updated existing test. Switced to a GetChainTxStats {
time: 1766036241,
tx_count: 104,
window_final_block_hash: 5d1f1967e8c133164a25a51f9bb125e79c8d2395baaabde8c3767b0220442a66,
window_final_block_height: Some(102),
window_block_count: 101,
window_tx_count: Some(102),
window_interval: Some(17),
tx_rate: Some(6.0)
} |
tcharding
approved these changes
Dec 29, 2025
0xB10C
added a commit
to peer-observer/peer-observer
that referenced
this pull request
Dec 30, 2025
This makes corepc support: - cpu_load and inv_to_send in getpeerinfo (as before) - addconnection - getorphantxs and includes rust-bitcoin/corepc#430 for #312 as well as other improvements in corepc master. Also upgrading the node version feature to v30 from v29.
0xB10C
added a commit
to peer-observer/peer-observer
that referenced
this pull request
Dec 30, 2025
This makes corepc support: - cpu_load and inv_to_send in getpeerinfo (as before) - addconnection - getorphantxs and includes rust-bitcoin/corepc#430 for #312 as well as other improvements in corepc master. Also upgrading the node version feature to v30 from v29.
deadmanoz
added a commit
to deadmanoz/peer-observer
that referenced
this pull request
Dec 31, 2025
corepc now correctly returns tx_rate as f64, matching Bitcoin Core. Upstream fix: rust-bitcoin/corepc#430
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.
Bitcoin Core has always returned
txrateas a double since the RPC was added in v0.15 (PR #9733).The previous type (
i64) causes deserialisation to fail. Here's a minimal example: