mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:44:38 +00:00
rpc: deprecate iswatchonly field of getaddressinfo #36864
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36864
Loading…
Reference in a new issue
No description provided.
Delete branch "rpc-getaddressinfo-deprecate-iswatchonly"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Since #32618,
getaddressinforeturnsiswatchonly: falsefor every address. It was kept and marked "(DEPRECATED)" so it could be removed later without surprising users (review comment), but it was never put behind-deprecatedrpc. The v30 release notes also say it was already removed from all RPCs, which isn't true forgetaddressinfo.This returns it only with
-deprecatedrpc=iswatchonly, likestartingheightingetpeerinfo(#34197), so it can be removed in the next release.The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Conflicts
Reviewers, this pull request conflicts with the following ones:
encryptwalletRPC for encrypting existing wallets. by davidgumberg)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 verified findings are available from this review.
Review coverage was incomplete.
Reviewed:
5b2f979c9e47· Review report · Previous reportspermalink
cc @maflcko @willcl-ark
ACK
5b2f979c9eFeel free to ignore the nits.
nit
nit
Possibly helpful for users to add something like:
(Use the
private_keys_enabledfield of RPCgetwalletinfoto know if a wallet is watch-only.)I presume this was intentional, because there was no rush to remove it and break parsers. (The others were already optional and removed "themselves")
lgtm ACK
5b2f979c9eSeems fine to do now.
Tested ACK
5b2f979c9eIf you do another push, leaving a comment (e.g.
# deprecation dummy testsimilar to#36855) makes it clear this is removable with the flag.I think it should be pretty obvious already without the comment. Recall the docs for this field say: "Always returns false"
rfm, or does it need more review?
It conflicts with #36387, which I thought might get another review and then merged (the same conflict why I hadn't merged #36868), however I think at this point we can merge both and #36387 can be re-rebased.