Review report

bitcoin/bitcoin: PR #36727

1 suggestion

Optional improvements

Link

[suggestion] · No test checks that the unsigned fee-bump PSBT export is v0

The GUI fee-bump Save export has no regression coverage for PSBT v0, so reverting its constructor to v2 would not be caught by the send-dialog version assertion.

Location: src/qt/walletmodel.cpp:518 (head).

Details and suggested fix

The added version assertion decodes a PSBT produced by SendCoinsDialog, while the BumpFee helper selects only Cancel or Yes and never enters this Save branch. Extend the existing full-wallet GUI fixture to enable PSBT controls, select Save when bumping the still-unbumped txid1, decode the clipboard PSBT, and assert GetVersion() == 0. Save is available with PSBT controls enabled even for a private-key wallet and returns before signing or committing, so this does not require a separate watch-only fixture. The current production constructor is correct, and upstream #36539 (23dcb03a2c) has the same coverage gap. Add the regression test upstream first, then backport it rather than adding it only on 32.x.


Backport verdict: Needs clarification

Fidelity could not be established from the available evidence.

Coverage details