mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Activity sync warnings: surface out-of-sync state around balances and activity #634
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml#634
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Code Gap
The Activity page has an empty-state message while the node is syncing, but there is no persistent warning around visible balances and existing activity when the wallet/node is still catching up. Qt's overview makes out-of-sync state visible so users do not rely on stale balance or transaction data.
Work Needed
+1
The place I ran into this was a payment request just says "Awaiting payment" while the node is still syncing (even after the payment was sent), could be good for the warning to cover that screen too.
The Send and Receive pages have the same gap, and Send lets a payment through on a balance that may be out of date.
To reproduce on regtest, I put the node about 100 blocks behind its best header (blocks 101, headers 203), with a 1 BTC payment to the wallet in the missing blocks:
The only cue is in the header: the tooltip reads Connecting with no peer, and Downloading blocks with a small yellow icon once a peer is connected. After the missing blocks arrived, the balance included the payment.
The wallet tabs depend only on a wallet being loaded (DesktopWallets.qml#L303-L329).
SendCreate.qmlandReceivePage.qmldo not read the node's sync state at all, and the only sync text on a wallet page is the Activity empty state (ActivityListPage.qml#L63-L73).It would help for the warning proposed here to cover Send's Available figure and the Receive page as well as balances and activity.
Reproduced on merged
qt6ateed1f426fcb6, macOS / Qt 6.9, isolated regtest. The node was put behind by giving it headers without their blocks, so Core did not report initial block download; a true first sync was not staged. The Send form and the send ran offscreen only; natively I checked that the Send tab was enabled and visited Activity and Receive.