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.
  • Using 1.5.19 API: Query account balances for accounts hiltos-son (or in inspect object 2.5.15718) and observe the balance of PPY.
  • Using 1.5.23-beta API: Query account balances for accounts hiltos-son (or in inspect object 2.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.