bitkit icon indicating copy to clipboard operation
bitkit copied to clipboard

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

Open thisispav opened this issue 1 year ago • 5 comments

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](https://github.com/user-attachments/files/173 photo_2024-10-09_12-06-51 photo_2024-10-09_12-06-59 photo_2024-10-09_12-06-52 05496/bitkit_ldk_logs_1728464765228.zip)

Operating system

Android

Bitkit version

v137

Log output

No response

thisispav avatar Oct 09 '24 09:10 thisispav

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

thisispav avatar Oct 09 '24 13:10 thisispav

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.

catch-21 avatar Oct 09 '24 13:10 catch-21

I suspect that balance sometimes going to 0 could be related: https://github.com/synonymdev/bitkit/issues/2297#issuecomment-2451735396

catch-21 avatar Nov 01 '24 12:11 catch-21

This happened to us multiple times in today's testing session using v1.0.6 (138).

The following is my experience, after CJIT channel open the activity appears but my spending balance is 0. Manual refresh required to see correct balance and the purple READY suggestion.

bitkit_ldk_logs_1730713584831.zip

https://github.com/user-attachments/assets/99d01ce7-f8e0-4cbc-a45c-a8d3adb097a1

catch-21 avatar Nov 04 '24 09:11 catch-21

Not able to reproduce this so far. If you run into this again please add as much detail as you can.

pwltr avatar Nov 28 '24 12:11 pwltr