Blockstream/green_android

Incorrect balance

Closed this issue · 2 comments

Description

The wallet doesn't seem to be calculating total l-sats correctly.

Version

4.0.18

Steps to reproduce

I keep track of all of my bitcoin transactions from various wallets and include l-sats in that calculation. This includes transactions and a snapshot of wallet balances. Today, I realized that the 2 transactions since my last reconciliation didn't justify the change in balance.

  • Before, it had 25,812 l-sats
  • I sent 270,000 l-sats (+257 l-sats in fees, from my elements node) to the wallet
  • That same day, I sent out 76,601 (76,313 + 288 fees).
  • This should be an overall change of +193,399 l-sats. Adding that to the existing balance of 25,812 should be 219,211.
  • My balance is showing 216,453 l-sats.

After realizing this, I went through all of my transaction history for this wallet and the balance is still incorrect. It should be 218,844 but, again, showing 216,453. I believe I am accounting for fees correctly and I don't see why the balance is showing this way.

Expected behaviour

Correct balance.

Actual behaviour

Incorrect balance.

Screenshots

none

Device or machine

Pixel, GrapheneOS.

Do you have some transactions sending assets? Those count as well since you pay fees in LBTC when sending assets

Good point. After including txns sending assets, the current total makes sense, but it doesn't explain the change from the previous total. I can't really prove or reproduce that though. I'll close for now and keep an eye on it.