mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:47:36 +00:00
rpc: Deprecate watchonly wallet no-op named options #36855
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!36855
Loading…
Reference in a new issue
No description provided.
Delete branch "2611-rpc-wallet-deprecate-watchonly-options"
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 "leet" commit
1337c72198, the options are deprecated no-ops, so it seems time to properly start a deprecation cycle for them.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
No conflicts as of last run.
For reference, the positional ones are tedious to deprecate, so that can be done later, maybe via
OBJ_NAMED_PARAMS, if possible, but that will be a larger breaking change than this, so I'll leave it for later.Review failed because required verification did not complete.
Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive linked from the Review report for their assessments.
Review coverage was incomplete.
Reviewed:
faab663f38ac· Review report · Previous reportspermalink
Tested ACK
fa73a095dcVerified locally that all five RPCs with the
-deprecatedrpc=watchonlyflag accept their deprecated options.rebased to include two small unrelated deprecation cleanups
ACK
fa0d856ab0This looks good to me.
I'm curious what the future plan might be for the positionals? Move all remaining into an options object? or require them to be
null? Something else I didn't think of...re-ACK
fa0d856ab0Not a problem for this PR, but if this becomes a template for future deprecations this won't give any notice to consumers that pass a
nullvalue. Perhaps!options.exists(option_name)is a more robust template?Thx, added the missing warning for
Noneas well.https://github.com/bitcoin/bitcoin/actions/runs/45575314984/job/139071697774?pr=36855#step:11:4543:
(Also added test coverage, including for the cli with a small string hack)
ACK
faab663f38Reviewed the 3 commits, checked remaining
watchoccurrences undersrc/wallet/rpc/(only positional ones remain), and built/tested on macOSarm64:rpc_deprecated.py(including--useclifor thenamed_nullNone->"null"handling),wallet_simulaterawtx.py(--usecli),wallet_importprunedfunds.py,wallet_fundrawtransaction.py,wallet_send.py, andwallet_sendall.pyall pass.(AI policy disclosure: used an AI assistant to run the local build and functional test matrix; I reviewed the diff directly.)
@enessubass Thx, but for the future, there is no need to list the test files and whether they passed. All automated tests are already run automatically and must pass.
re-ACK
faab663f38Latest push cleanly addresses the feedback re: null value deprecation warnings.
reACK
faab663f38