mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:50:37 +00:00
rpc, wallet: Convert walletprocesspsbt to use options parameter #36986
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!36986
Loading…
Reference in a new issue
No description provided.
Delete branch "walletprocesspsbt-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?
This picks up #24963.
walletprocesspsbttakes four settings after the PSBT, three of them booleans, so a positional call readswalletprocesspsbt "psbt" true "ALL" true false, and each new setting becomes one more positional parameter (#32857 would add a sixth). This moves the four settings into an options object as the second parameter. Calls that work today, by position or by name, keep working.For the old positional form, the second position accepts either the options object or the old
signboolean, which needs a parameter to declare one type per alias. The other three settings stay as hidden positional parameters. A parameter passed by name must have the type declared for that name, sooptions=trueis rejected instead of being read assign=true.Changes compared to #24963, besides the rebase on the current RPC framework.
getopenrpcinfodescribes the second parameter as an object or a boolean.walletprocesspsbt <psbt> true finalize=falsewith-named, works as on master instead of failing with "specified twice".walletcreatefundedpsbt outputs=... add_inputs=true bip32derivs=falsefail with "JSON value of type object is not of expected type object".descriptorprocesspsbtandcreatewalletI will do as follow-ups if this is accepted first.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.
A summary of reviews will appear here.
Conflicts
Reviewers, 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.
LLM Linter (✨ experimental)
Possible places where comparison-specific test macros should replace generic comparisons:
src/test/rpc_tests.cpp:BOOST_CHECK_THROW((RPCArg{"options", ...}), NonFatalCheckError)→ PreferBOOST_CHECK_EXCEPTIONwith a predicate checking the specific failure message.src/test/rpc_tests.cpp:BOOST_CHECK_THROW((RPCArg{"flag|options", ...}), NonFatalCheckError)→ PreferBOOST_CHECK_EXCEPTIONwith a predicate checking the specific failure message.2026-11-25 21:19:36
🔵 Suggestion · The null
finalizetest cannot distinguish the default fromfalseThe new
finalize=Noneassertion uses an unsigned PSBT withsign=False, so treating null as false would leave the assertion passing.Location:
test/functional/rpc_psbt.py:1519(head).🔵 Suggestion · The OpenRPC schema permits a boolean under
optionsAn OpenRPC client using named arguments can validate
options=trueagainst the published schema even thoughwalletprocesspsbtrejects it.Location:
src/rpc/server.cpp:359(head).🔵 Suggestion · The
walletprocesspsbtinterface change lacks a release notewalletprocesspsbtnow documents an options object and hides the legacy positional settings, but no release-note entry explains the change.Location:
src/wallet/rpc/spend.cpp:1640(head).🔵 Suggestion · The conversion commit precedes its by-name type enforcement
The final tree rejects
options=<bool>, but the conversion commit temporarily accepts it assign; moving the framework check earlier would make the conversion independently reviewable with its intended contract.Location: src/wallet/rpc/spend.cpp:1640 (commit).
Reviewed:
348688bb8fd2· Review report · Previous reportspermalink