Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[indexer-balances] Sanity check data against RPC when performing DB only calculations #47

Open
morgsmccauley opened this issue Oct 5, 2023 · 0 comments
Assignees

Comments

@morgsmccauley
Copy link
Contributor

Rather than using RPC to calculate the balance change, #45 uses the data which already exists in the DB. The problem with this approach is that errors will continuously propagate through following calculations, as new calculations use previous values. This is not a problem with the RPC approach as new calculations rely on data coming directly from the network, which will always be correct. Errors will be isolated to a single entry in the DB.

To mitigate this problem, we should introduce some form of external process which performs random sanity checks of the DB against RPC. This allows us to be notified of, and respond to, errors early.

@morgsmccauley morgsmccauley self-assigned this Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant