-
Notifications
You must be signed in to change notification settings - Fork 37.4k
rpc: Return block hash & height in getbalances, gettransaction and getwalletinfo #26094
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rpc: Return block hash & height in getbalances, gettransaction and getwalletinfo #26094
Conversation
64fc793
to
7bf1c59
Compare
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
As I said previously,
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK
This does what it says it does. I think it's fine to add these fields, I can imagine it would be useful. Tested and sanity checked the code, and ran tests locally.
b3752eb
to
37a05b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 37a05b4
Returns the blockheight and hash the aforementioned RPCs were run against. Feels like a win for users of the RPCs.
ACK 37a05b4
I don't really see how that would be possible to implement in a way that wouldn't be detrimental or fragile. It seems like it would have to be implemented with an explicit list of RPCs that must be done atomically in order to avoid any RPC just locking things up. Such a list could fall out of date as new RPCs are added and people forget, so it would be kind of fragile. |
There's a test failure in
|
…alletinfo JSONs Co-authored-by: Aurèle Oulès <aurele@oules.com>
37a05b4
to
710b839
Compare
ACK 710b839 |
…gettr 8000 ansaction and getwalletinfo 710b839 rpc: return block hash & height in getbalances, gettransaction & getwalletinfo JSONs (Harris) Pull request description: Reopens bitcoin#18570 and closes bitcoin#18567. I have rebased the original PR. Not sure why the original got closed as it was about to get merged. ACKs for top commit: achow101: ACK 710b839 Tree-SHA512: d4478d990be98b1642e9ffb2930987f4a224e8bd64e2e35a5dda927a54c509ec9d712cd0eac35dc2bb89f00a1678e530ce14d7445f1dd93aa3a4cce2bc9b130d
…alletinfo JSONs Co-authored-by: Aurèle Oulès <aurele@oules.com> Github-Pull: bitcoin#26094 Rebased-From: 710b839
Reopens #18570 and closes #18567.
I have rebased the original PR.
Not sure why the original got closed as it was about to get merged.