Repository navigation
bitwindow: show no old balance after a failed read - #3052
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
64042ad to
4d96c7b
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4d96c7b624
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| amount: formatter.formatSats(balanceSats), | ||
| sats: '${formatWithThousandSpacers(balanceSats)} sats', | ||
| ), | ||
| stats: [ | ||
| SailStat(label: 'Unconfirmed', value: walletAmountText(btcToSatoshi(balance.pendingBalance))), |
There was a problem hiding this comment.
Hide the overview balance when its latest read fails
After a successful balance read, stopping Bitcoin Core leaves the new desktop overview strip displaying the cached confirmed and unconfirmed balances as current. BalanceProvider retains those numbers when recording a failure in error, but this widget never checks that error and formats both balances unconditionally. The statsError handling only masks the other statistics, so the overview still shows stale amounts even while the bottom bar correctly displays -. Gate both balance values on the balance provider's read-error state.
Useful? React with 👍 / 👎.
b22c976 to
08715ca
Compare
The tile said "across 101 transactions" for a wallet with only incoming coins. It now counts the transactions with a fee.
The balance stream stayed open with no frame while Core was down, so the app showed the last balance as current. The stream now sends one frame with the error, then waits for Core.
A failed balance read kept the last numbers in the bottom bar, and a failed poll told no listener. The bar now shows "-" with the error in its tooltip until the next good read.
08715ca to
c3a3930
Compare
The wallet overview showed old or wrong numbers when a read failed. The balance stream now sends the error, and the bar and fee tile show the real state.
Bugs:
bitcoin-cli stop, look at the bar.Figma: figma://file/Uvj2xZiMJsOt3nDaSxDGLQ?node-id=1747-16428