synonymdev / bitkit

Self-custodial Bitcoin and Lightning Wallet for Android and iOS.
https://bitkit.to
MIT License
116 stars 23 forks source link

[Bug]: Total Balance changed when Manually Transferring Savings > Spending #2301

Open thisispav opened 5 days ago

thisispav commented 5 days ago

Describe the bug

I tried the manual transfer flow Savings > Spending. I set the channel size to 12000 sats and initiated the transfer Savings 29754 Spending16392 Total 46146

but the initial screenshot showed total 58146 (which was 12000 difference the exact size of the channel I initiated)

I refreshed the balance after 5 min and got a new total balance 38146.

order ID 423a0291-81ce-4dfb-9860-03397bb19fd6

Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots / Recording

bitkit_ldk_logs_1728464765228.zip

Operating system

Android

Bitkit version

v137

Log output

No response

thisispav commented 5 days ago

same issue happened again when I attempted to manually open a channel to Blocktank0 node photo_2024-10-09_16-21-34

catch-21 commented 5 days ago

My hunch is a coincidence of the transfer occurring at the same time as a wallet refresh. There is a spend output still being considered for the savings balance that should not be. Or something like that.