Review report

bitcoin-core/gui-qml: PR #1062

2 suggestions

Optional improvements

Link

[suggestion] · Open details on a hidden address repeat the wallet scan on every refresh

While details remain open on a paid address hidden by the unused filter, each model reset repeats the wallet-history and coin enumeration that rebuilding the list just performed.

Location: qml/models/addresslistmodel.cpp:213 (head).

Details and suggested fix

rebuild() calls collectEntries(m_show_used), then the new onModelReset handler synchronously calls entryForAddress() on the GUI thread. Once payment hides the selected address, that lookup misses the rows and calls collectEntries(true) again. This repeats listCoins(), address enumeration and getWalletTxs(); at the pinned Core revision, the latter constructs every WalletTx while holding cs_wallet. Because balanceChanged refreshes the model, this is recurring work while the popup remains open, rather than a one-time lookup after payment. Collect the unfiltered category once during rebuild(), retain that snapshot, and derive the visible rows using the existing filter. Then look up details in the snapshot. The only production caller runs immediately after a reset, so this preserves its freshness and hidden-address behavior at the cost of retaining hidden entries. Added latency has not been measured and depends on wallet size and notification frequency.


Link

[suggestion] · Post-update QR checks do not inspect the exported image

After Update, the functional test checks only QRImage.code, so it cannot detect an incorrect exported image when sharing returns.

Location: test/functional/qml_test_receive.py:349 (head).

Details and suggested fix

_request_qr_payload() waits for visibility and then reads the code string. The only saved-image assertion checks a PNG signature before any edits. Copy and Save instead capture qrPanel through grabToImage(), and this PR changes that panel's background and notice visibility while the QR retains its opacity animation. A rendering or capture regression could therefore leave the post-Update assertions passing with a correct URI property. After a successful Update, save to a fresh path, decode the PNG, and compare its URI with the expected address, amount, label and message while checking that the private note is absent. If adding a decoder dependency is impractical, at least exercise and check a fresh export after Update. Keep the property checks for edit-state coverage. This is a coverage improvement, not an observed image failure.


Coverage details