mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 16:02:38 +00:00
gui: Use PSBT v0 #36539
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!36539
Loading…
Reference in a new issue
No description provided.
Delete branch "2026-10-15-psbt-gui"
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 fixes: https://github.com/bitcoin/bitcoin/issues/36518
There is no test added here for the bump fee PSBT's being v0, since there aren't any existing tests for watch only wallet feebumping in the GUI. If reviewers insist on this I can add it, but I wanted to keep the diff minimal. I have tested this manually.
AFAIU for the external signer stuff it shouldn't matter much whether it's v0 or v2, since users are very unlikely to be using HWI software that doesn't speak v0, but out of caution I've set the external signer PSBT to v0 for the GUI.
This PR originally took the approach of adding a checkbox, (davidgumberg/gui/2026-10-15-psbt-gui), but this was dropped to simplify backporting past string freeze.
LLM Disclosure: The previous approach was drafted using an LLM, but this branch was written by me. I used an LLM to explore adding a fee bump watchonly GUI test, and decided against it.
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:
CAmounta class by hodlinator)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.
🔵 Suggestion · Fee-bump Create Unsigned exports lack a PSBT-version regression test
The new GUI assertion checks only SendCoinsDialog, so reverting WalletModel's independent fee-bump export to PSBTv2 would escape the current assertions.
Location:
src/qt/walletmodel.cpp:504(head).🔵 Suggestion · Persistent signer documentation conflicts with the new minimum requirement
The release note requires HWI 2.1.0, but the persistent guide still permits 2.0 and leaves the signer's PSBTv2 requirement unspecified.
Location:
doc/release-notes-hwi-minver.md:9(head).🔵 Suggestion · PR description incorrectly says GUI external signing switches to v0
GUI Send still requests PSBTv2, and a successful incomplete signer reply retaining v2 is exported unchanged, contrary to the description's claim that GUI external signing was switched to v0.
Location:
src/qt/sendcoinsdialog.cpp:507(head).🔵 Suggestion · Add a release note for the PSBT export default change
The GUI's Create Unsigned send and fee-bump exports now produce PSBTv0 instead of the base's v2. The added release note only covers the external-signer PSBTv2 requirement and doesn't mention this visible change.
Location:
src/qt/sendcoinsdialog.cpp:487(head).🔵 Suggestion · Use a PR-specific release-note filename
The note is still named doc/release-notes-hwi-minver.md rather than the PR-numbered name developer-notes asks for. The author's 'Taken' reply isn't reflected in the source. The base already has a topic-named note (release-notes-remove-persistmempoolv1.md), so this is low priority.
Location:
doc/release-notes-hwi-minver.md:1(head).Review coverage was incomplete.
Reviewed:
3fdc45d1fa2a· Full review report · Previous reportspermalink
@achow101 @polespinasa
I don't think we should be adding any GUI elements for a PR targeting a backport, particularly as it adds strings for translation. We can do v0 only in the GUI I guess.
cc @hebasto
That seems fine for now if it's easier. There could be a (release) note to use the RPC for v2 when needed.
I've pushed so that the GUI just returns v0 PSBT's.
Code review
f0777e6855.I think it's better to consistently use v2 for external signers, both from the GUI and RPC.
You can use the same comment in the regular send path, if you take my suggestion above.
The GUI fee bump with an external signer still uses v2 (
WalletModel::bumpFee->signBumpTransaction->feebumper::SignTransaction, pinned to v2 and shared with RPCbumpfee).Suggestion: a
psbt_versionparam can be added tofeebumper::SignTransaction/signBumpTransaction, with the GUI passing 0 and RPC keeping 2.diff
Pushed this to the
32.1milestone.I've modified this so that the external signer PSBT's are v2, this breaks support with external signer software that doesn't know about v2, which is quite reasonable I think, so I've added a release note about that.
Taken, thanks
ACK
3fdc45d1faSadly we missed the 32.1 milestone, time flies.
I've re-run previously cancelled CI jobs.
crACK
3fdc45d1faconcept ACK
What happens in case of a multisig between a user using a new version of Core with an external signer and another user using a Core version without v2 support?
IIUC defaulting the external signer to v2 and not giving the option to set it to v0 makes those two users unable to sign the transaction if it was first created by the new version of Core.
ACK
3fdc45d1faBackported to
32.xin #36727.We don't have documented support for multisig with external signers. After https://github.com/bitcoin/bitcoin/pull/33112, #36075, etc that will become more realistic. But by defintion people using that would need a new (future) version Bitcoin Core anyway.
ralph referenced this pull request2026-11-16 19:07:04 +00:00