Skip to content

Automatic Balance Mismatch Debugging

Compare
Choose a tag to compare
@patrick-ogrady patrick-ogrady released this 21 May 01:01
· 886 commits to master since this release
1f0d9c5

This release introduces "automatic" debugging of inactive reconciler errors (when an account balance changes without a corresponding operation) #26.

Before this release, the rosetta-cli would print out that there was a balance discrepancy but did not print out the block that was missing the balance-changing operation. To debug the error, one would need to create an interesting-accounts.json file and run check with the --interesting-accounts=./interesting-accounts.json option. Now, all of this happens automatically and the rosetta-cli prints out the block that is missing a balance-changing operation.

Other Improvements

  • Running the check command now exits with a 0 status if there were no errors and a non-zero status if something went wrong (#25). This means it is now possible to use the rosetta-cli in integration tests (issue #20 has more detail on this).
  • Allow for configuring active vs inactive reconciler threads independently. PR #23 has more detail on why this is useful.