OverviewFilesCommitsIssuesDocsReleasesPeers

hyper-wallet-desktop commits / 36d200b

Fix Bitcoin transaction sync to use current address index
BUG: Bitcoin transaction sync was hardcoded to sync only index 0. FIXED: - Bitcoin sync (line 1873): Now gets current Bitcoin address from storage This completes the comprehensive fix for ALL endpoints that were using hardcoded index 0. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
36d200bd119d4ce1ec2a4739c46d255a8152b4b7
by plankatron <fleeky@gmail.com> · 2026-01-29T16:58:12.000Z

Changed files (1) +5 -1

wallet-server.cjs +5 -1
……@@ -1870,7 +1870,11 @@ const routes = {
18701870
18711871 // Sync Bitcoin transactions using Blockstream API
18721872 try {
1873 const btcAccount = await wdk.getAccount('bitcoin', 0)
1873 // Get current Bitcoin address index from storage
1874 const currentBtcAddr = await getCurrentAddress('bitcoin')
1875 const btcAccountIndex = currentBtcAddr ? currentBtcAddr.index : 0
1876
1877 const btcAccount = await wdk.getAccount('bitcoin', btcAccountIndex) // FIX: Use stored index
18741878 const btcAddress = await btcAccount.getAddress()
18751879
18761880 const response = await fetch(`https://blockstream.info/testnet/api/address/${btcAddress}/txs`)