Review report

bitcoin-core/gui-qml: PR #1056

1 major finding · 1 suggestion

Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.

Findings

Link

[major] · Maximum sends can report success despite exceeding Core's fee-rate cap

A maximum send above the new wallet fee-rate cap can be committed and reported as sent, while Core rejects broadcast and leaves its inputs marked spent.

Location: qml/models/walletqmlmodel.cpp:339 (head).

Details and suggested fix

When a recipient uses maximum, preparation bypasses Core's guarded createTransaction and calls this helper, which checks m_max_tx_fee but not the new m_max_tx_fee_rate. A user-lowered -maxfeerate, an unusually high custom rate above the default 10,000 sat/vB cap, or sufficient ancestor bump fees can exceed the rate cap while satisfying the absolute fee and balance checks. GetMinimumFeeRate does not enforce this cap. After the user reviews and confirms the transaction, sendTransactionInternal commits it and returns true, causing QML to emit transactionSent. For an otherwise acceptable transaction not already in the mempool, Core stores it before rejecting broadcast with MAX_FEE_RATE_EXCEEDED and only logs that failure. Resubmission encounters the same cap, and the inactive, non-abandoned transaction keeps its inputs marked spent. The QML application has no abandonment action, so releasing those inputs requires RPC recovery; raising the cap can instead allow later broadcast. Add the sendall RPC's check, fee > wallet->m_max_tx_fee_rate.GetFee(size.vsize), before signing, and test that an above-cap maximum send fails preparation without signing or committing. This uses estimated maximum vsize, as the RPC does, so borderline cases can still differ from broadcast's actual-vsize check. No user report or runtime reproduction is available.


Optional improvements

Link

[suggestion] · The GCC 12 warning downgrade has no documented removal condition

The new configure-wide maybe-uninitialized exception also relaxes application and unit-test warning enforcement on GCC 12, without recording why it is needed or when it can be removed.

Location: .github/workflows/ci.yml:24 (head).

Details and suggested fix

The Jammy job places -Wno-error=maybe-uninitialized in CXXFLAGS for the whole configure, so it affects bitcoinqml and its unit tests as well as Core. Diagnostics remain visible, and the Ubuntu 24.04 and 26.04 jobs still use warnings-as-errors, so this is a limited CI-maintenance concern rather than a build or production defect. Add a short comment naming the motivating diagnostic and the upstream fix or compiler-version change that permits removing the exception. That preserves the necessary workaround without leaving its rationale implicit. The older exceptions on this line are also undocumented, but the new one can record its reason when introduced.


Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.