-
Notifications
You must be signed in to change notification settings - Fork 13
fix vtxos reload after settle in coin control #160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughAdds a new getVtxos function in asp library, integrates it into wallet reload flow, updates WalletContext reloadWallet signature to accept an optional ServiceWorkerWallet, centralizes VTXO updates during reload, and invokes reloadWallet from the Settings Vtxos screen after coin renewal. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant VtxosScreen as Settings/Vtxos
participant WalletProvider
participant SvcWorker as ServiceWorkerWallet
participant ASP as asp.getVtxos
User->>VtxosScreen: Renew coins
VtxosScreen->>WalletProvider: reloadWallet(svcWallet?)
alt svcWallet provided
WalletProvider->>SvcWorker: fetch balance/txs (existing calls)
else no svcWallet
WalletProvider->>WalletProvider: use current svcWallet if available
end
WalletProvider->>ASP: getVtxos(wallet)
ASP-->>WalletProvider: {spendable[], spent[]}
WalletProvider->>WalletProvider: setState(balance, txs, vtxos)
note over WalletProvider: Centralized VTXO update during reload
SvcWorker-->>WalletProvider: message: balance/utxo update
WalletProvider->>WalletProvider: reloadWallet(current svcWallet)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧠 Learnings (2)📓 Common learnings📚 Learning: 2025-06-30T18:33:29.839ZApplied to files:
🧬 Code graph analysis (3)src/lib/asp.ts (1)
src/providers/wallet.tsx (1)
src/screens/Settings/Vtxos.tsx (2)
🔇 Additional comments (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Deploying wallet-signet with
|
| Latest commit: |
c9c98d5
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8fc48599.wallet-23u.pages.dev |
| Branch Preview URL: | https://fix-wallet-reload.wallet-23u.pages.dev |
Deploying wallet-mutinynet with
|
| Latest commit: |
c9c98d5
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0f253dcd.arkade-wallet.pages.dev |
| Branch Preview URL: | https://fix-wallet-reload.arkade-wallet.pages.dev |
Deploying wallet-bitcoin-v8 with
|
| Latest commit: |
c9c98d5
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://9400566d.wallet-v8.pages.dev |
| Branch Preview URL: | https://fix-wallet-reload.wallet-v8.pages.dev |
Summary by CodeRabbit
New Features
Bug Fixes