Blockstream / green_android

Blockstream Green Wallet for Android
GNU General Public License v3.0
184 stars 74 forks source link

Incorrect balance #180

Closed inpharmaticist closed 10 months ago

inpharmaticist commented 10 months ago

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.

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.

domegabri commented 10 months ago

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

inpharmaticist commented 10 months ago

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.