[Export] BUG: Inconsistent balances in Daily Balance CSV
See original GitHub issueIssue Description
I am experiencing two issues with the daily balance CSV export:
-
The daily balances exported from v1.4.0 do not match a previous export I made from v1.3.x. For example, the v1.3.x export may report 102.321 DCR on 12/31/2018 but a subsequent export from v1.4.0 reports 100.876 DCR on 12/31/2018. I know the second balance is wrong because of the second point below.
-
The sum of the
spendable
,immature
, andlocked
columns in the export do not equal thetotal
column. For certain dates the discrepancy can be > 100 DCR.
Expected result
For days that have closed, the daily balance in the CSV should not change between exports. The sum of the spendable
, immature
, and locked
columns should equal the total
column.
Versions Affected
Experiencing this issue with Version 1.4.0. I was able to export a correct CSV from Version 1.3.2
Steps to reproduce
- Be running decrediton with staking turned on
- Export the Daily Balances CSV file from v1.4.0
- This is sufficient to surface issue 2
- Export the Daily Balances CSV from v1.3.x and compare to v1.4.0 export
- Necessary to surface issue 1
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (14 by maintainers)
Top GitHub Comments
Seems something like that, yeah. We can reproduce the problem now, seems like some transactions get offset into the next day, which ends up throwing the calculations off. We’ll keep you posted once we have a fix for it.
It won’t work anymore, given it’s been hardforked out of the network (due to the latest voting).