qml: Require a custom fee when fees cannot be estimated

bitcoin-core/gui-qml: PR #1092

1 minor finding · 1 suggestion

Findings

Link

[minor] · Rapid block retries can keep the Custom-fee guidance hidden

After an unavailable result, block-tip deliveries less than 250 ms apart can keep the footer on “Estimating…” instead of the Custom guidance; actual delivery timing during sync was not measured.

Location: qml/pages/wallet/SendCreate.qml:226 (head).

Details and suggested fix

For a valid draft using a preset, each block-driven retry calls scheduleFeeEstimates(), which restarts the single-shot timer, invalidates in-flight request IDs, and leaves feeEstimatePending true. It retains m_unavailable_fee_targets, so subsequent tips continue taking this path. The footer therefore hides the guidance until deliveries pause long enough for a request to start and finish. Review remains disabled and Custom remains usable. Skip this block-driven retry while feeEstimatePending is true so incoming tips cannot continually postpone the same recheck.


Optional improvements

Link

[suggestion] · The Custom slider still clears an entered rate when estimates are absent

The pre-existing slider behavior blanks an entered custom rate when estimates and fallback are unavailable, disabling Review again in the workflow this PR now recommends.

Location: qml/components/SendFeeSelection.qml:52 (head).

Details and suggested fix

Outside regtest, a user can enter 17 sat/vB in Custom and then move “Targeted blocks.” The slider calls setCustomFeeTarget(), and pinned Core returns zero when that target has no estimate and the fallback fee is zero. The setter replaces the entered rate with an empty string. The field then shows its minimum-rate validation message, and re-entering the rate recovers. When the lookup returns rate <= 0, update only the target and retain the entered rate; a deliberate slider change can still replace it when an estimate exists.


Coverage details