3 minor findings · 4 suggestions
Findings
[minor] · Optional sp parsing discards a usable on-chain fallback
Optional sp instructions can now discard a usable on-chain fallback, rejecting some external URIs or selecting SP for wallets that cannot send it; no in-tree producer of these URIs was found.
Location: qml/models/bitcoinuri.cpp:77 (head).
Details and suggested fix
At base, bitcoin:<addr>?sp=<x> retained the valid body address. The new scan handles sp and req-sp identically: an undecodable value or a second instruction rejects the URI, while a single valid value replaces result.address. applyParsedPaymentRequest imports that selected address without checking wallet capabilities. Watch-only and external-signer wallets then fail in prepareTransactionInternal, although they could use the body address, which is no longer exposed by the parse result. Preserve the body fallback, SP alternatives and requiredness separately, then select a supported payment method before review. Unusable optional instructions should leave the valid fallback available, while unsatisfied req-sp must still fail. Add parser and selection tests for valid fallback-plus-SP, invalid optional SP, multiple instructions and required SP.
[minor] · Restored SP sends can be bumped without recomputing their outputs
The inherited unknown-origin RBF limitation also affects newly enabled GUI SP sends: after restoring a pre-payment backup, a bump that changes the derivation input set can leave the payment undiscoverable by SP scanning.
Location: qml/models/bumptransactionmodel.cpp:133 (head).
Details and suggested fix
prepareFeeBumpInternal enables SP handling only when rbf_needs_sp_outputs is set. A wallet restored from a pre-payment backup can rediscover its unconfirmed send without that marker or recipient data because AddToWalletIfInvolvingMe supplies no metadata updater. The GUI allows the ordinary bump path, and Core skips SP reconstruction, preserves the Taproot destination and permits additional inputs. If coin selection adds an eligible input that changes the derivation, the replacement retains an output that SP scanning cannot derive from its new inputs. Existing ownership, confirmation and descendant checks do not prevent this case. The TODO and bitcoin-qt share this backend limitation. Until Core distinguishes unknown-origin payments from known ordinary ones, fail closed on input-adding replacements of unmarked transactions with Taproot non-change outputs, accepting that this also restricts some ordinary bumps. Cover rediscovery after a pre-payment restore in a regression test.
[minor] · Fee bumping erases the original history entry's SP address
A successful fee bump removes the original entry's SP address from display, search and details because history reads disposable RBF metadata; the replacement retains its own metadata.
Location: qml/models/transactionactivitymodel.cpp:37 (head).
Details and suggested fix
SilentPaymentAddresses reads only CWalletTx::m_sprecipients, which Core documents as working data for RBF output recomputation. Successful bump commit calls MarkReplaced, which clears that vector, erases its database record and notifies the original transaction. readSnapshot then replaces the cached address list with an empty one, so the original entry loses its SP-address search match and detail row; single-recipient display falls back to the raw Taproot address. Reloading does not restore the association. This also affects an original transaction that later confirms and becomes active again. Persist SP payment-history metadata separately from fee-bump working data and expose it through interfaces::Wallet, with replacement-and-reload coverage.
Optional improvements
[suggestion] · GUI tests miss the new SP authorization and matching branches
The updated GUI tests exercise ordinary payments, leaving SP preparation-time authorization, recipient matching, metadata forwarding and URI selection without regression coverage.
Location: test/test_bumptransactionmodel.cpp:41 (head).
Details and suggested fix
MakeBumpableWallet configures eligibility, but its inherited getWalletTx returns {}, so every bump unit test leaves rbf_needs_sp_outputs false. The QML mock jumps directly to NeedsConfirmation and has no prepareFeeBumpWithPassphrase, so it cannot exercise password-before-preview behavior. Add a configurable SP-marked transaction and have bump creation return recipient metadata. Assert one preparation-time signature, relocking on success and failure, no second unlock/sign at confirmation, exact recipient forwarding, and rejection of stale transaction IDs or missing recipients. Extend the QML mock to reach Preparing with needsUnlock. The GUI suites also need SP positional-matching cases with and without change, note-rule and repeat-send assertions, and sp/req-sp parser cases. These recommendations concern the GUI tests, not Core's SP functional coverage.
[suggestion] · Final SP review drops the payment request's description
SP request labels and messages remain on the editing form but disappear at final confirmation, although the address and amount are still shown.
Location: qml/pages/wallet/SendCreate.qml:532 (head).
Details and suggested fix
paymentRequestNote now returns an empty string for SP URIs, and recipient validation rejects a nonempty SP note. captureReviewedRecipients snapshots only recipient->label() and the request flag, while SendTransactionReview uses that private label as its title. Consequently, an SP request reaches confirmation with its address, amount and generic request badge, but without its stated recipient name or purpose. Carry the untrusted URI label and message in separate review-only snapshot fields. This preserves useful context at final authorization without persisting an SP private note.
[suggestion] · The fee-bump authorization change lacks a separate review boundary
c6048ff9 combines dependency adaptation, SP sending, two-stage fee-bump authorization, URI parsing and history display, making the authorization change harder to validate independently.
Location: qml/models/bumptransactionmodel.cpp:133 at c6048ff9fc15 (commit) (commit).
Details and suggested fix
In c6048ff9fc15d4b86b715e2eba2443ca1fffd134, SP preparation now unlocks and signs, confirmation skips those actions when m_bump_signed is set, and SpeedUpOverlay adds preparation-password and operation-lifetime handling. Separate this coupled model/QML change from the other feature work. A concrete order is dependency adaptation first, SP sending second, SP fee bumping third, then URI parsing and history display. The adaptation commit must update every production and test call site for PaymentDestination and the new signatures, including recipient-metadata forwarding; keep preparation, confirmation and popup changes together. This would let reviewers validate the two-stage authorization flow without the unrelated URI and history edits. The final tree need not change, but the proposed intermediate trees still need build and safety checks.
[suggestion] · The general fee-rate overflow fix is bundled with SP support
c6048ff9 includes an independent custom-fee overflow fix, preventing it from being reviewed and backported separately from the SP feature.
Location: qml/models/walletqmlmodel.cpp:204 at c6048ff9fc15 (commit) (commit).
Details and suggested fix
c6048ff9fc15d4b86b715e2eba2443ca1fffd134 adds the overflow guard before whole_part * FEE_RATE_BASIS_VBYTES in ParseCustomFeeRatePerKvB. This fixes general custom-fee parsing and does not depend on SP state. Put that guard in a preceding commit, ideally with a boundary-value test, so it can be reviewed and backported independently. The same feature patch also moves many existing includes in walletqmlmodel.cpp; omit or isolate those mechanical moves while keeping required additions such as common/paymentdestination.h with their users. This rearrangement preserves final behavior.