Balance discrepancies in 1.5.23-beta
After replay with 1.5.23-beta, some accounts show differences in core balance, even before the hardfork date is triggered.
Steps to reproduce: MainNet
- Sync a 1.5.19 node to mainnet (or use an existing node)
- Sync a 1.5.23-beta node to mainnet.
- Suggest using build artifact from this pipeline, as it has mainnet HF date set to July 5, which is still in the future, and can therefore sync with mainnet: https://gitlab.com/PBSA/peerplays/-/pipelines/879332133
- Using 1.5.19 API: Query account balances for accounts
hiltos-son(or in inspect object2.5.15718) and observe the balance of PPY. - Using 1.5.23-beta API: Query account balances for accounts
hiltos-son(or in inspect object2.5.15718) and observe the balance of PPY. - Compare balances
Expected result:
Balances should agree between software versions.
Encountered result:
Account: hiltos-son
- Balance returned by 1.5.19: 1018.14502 PPY
- Balance returned by 1.5.23-beta: 1028.14502 PPY (10 PPY more than 1.5.19)
Account: will-cook
- Balance returned by 1.5.19: 748.39173 PPY
- Balance returned by 1.5.23-beta: 725.05840 PPY (23.33333 PPY less than 1.5.19)
Additional notes:
Observed balance discrepancies are all in SONs accounts, and issue seems related to SONs operations. However, an exhaustive comparison has not yet been performed, and the presence of balance discrepancies in non-SONs accounts has not been ruled out.
Test has been carried out using a version of 1.5.23-beta with the hardfork date in the future (2023-07-05), so the discrepancy is not a result of having traversed the hard-fork date.