-
Notifications
You must be signed in to change notification settings - Fork 38.7k
cli: call getbalances.ismine.trusted instead of getwalletinfo.balance #18574
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
cli: call getbalances.ismine.trusted instead of getwalletinfo.balance #18574
Conversation
|
This change was ACKed in the original PR by @jonasschnelli. |
vasild
left a comment
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.
utACK baa069151971f137782e3bd998f07f9f16185637
baa0691 to
7dd939a
Compare
|
Thanks for reviewing @vasild! Can you re-ACK? |
085d332 to
130abeb
Compare
|
Force-pushed for good catch by @vasild (thanks!) |
|
ACK 130abeb93 Compiles and |
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. 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. |
- no longer depend on the deprecated balance field of getwalletinfo - test blockcount and balance against non-default, non-zero expected values
130abeb to
5df0877
Compare
|
One (hopefully) last fixup 🤦 |
vasild
left a comment
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.
re-ACK 5df0877
test/lint/lint-python.sh passes locally
|
ACK 5df0877
And thanks for updating the |
|
ACK 5df0877 |
promag
left a comment
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.
Code review ACK 5df0877.
theStack
left a comment
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 5df0877
…ance Github-Pull: bitcoin#18574 Rebased-From: 7501977
- no longer depend on the deprecated balance field of getwalletinfo - test blockcount and balance against non-default, non-zero expected values Github-Pull: bitcoin#18574 Rebased-From: 5df0877
…ance Summary: > This PR updates bitcoin-cli -getinfo to fetch the wallet balance from getbalances in order to no longer depend on getwalletinfo.balance which was deprecated a year ago in D6447 > > test: update and harden interface_bitcoin_cli tests > > - no longer depend on the deprecated balance field of getwalletinfo > - test blockcount and balance against non-default, non-zero expected values This is a backport of Core [[bitcoin/bitcoin#18574 | PR18574]] Test Plan: `ninja all check-all` `src/bitcoin-cli -getinfo` Reviewers: #bitcoin_abc, majcosta Reviewed By: #bitcoin_abc, majcosta Subscribers: majcosta Differential Revision: https://reviews.bitcoinabc.org/D8912
Bitcoin-Core PR: bitcoin/bitcoin#18574 Pull request description: Extracted from #18453 to preserve that PR as a discussion on multiwallet RPC/CLI. This PR updates `bitcoin-cli -getinfo` to fetch the wallet balance from `getbalances` in order to no longer depend on `getwalletinfo.balance` which was deprecated a year ago in facfb41. I found this when removing the getwalletinfo() `balance`, `unconfirmed_balance`, and `immature_balance` fields to see what broke from depending on them. I didn't see any perceivable change in `-getinfo` run time from the change. Test coverage for this change is provided by `test/functional/interface_bitcoin_cli.py`, which the second commit updates to (a) no longer depend on getwalletinfo.balances and (b) test the -getinfo blockcount and balance fields against non-default, non-zero values.
Extracted from #18453 to preserve that PR as a discussion on multiwallet RPC/CLI.
This PR updates
bitcoin-cli -getinfoto fetch the wallet balance fromgetbalancesin order to no longer depend ongetwalletinfo.balancewhich was deprecated a year ago in facfb41.I found this when removing the getwalletinfo()
balance,unconfirmed_balance, andimmature_balancefields to see what broke from depending on them.I didn't see any perceivable change in
-getinforun time from the change.Test coverage for this change is provided by
test/functional/interface_bitcoin_cli.py, which the second commit updates to (a) no longer depend on getwalletinfo.balances and (b) test the -getinfo blockcount and balance fields against non-default, non-zero values.