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

bug: pindexer: allow dex and auction supply to be temporarily negative #4907

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

cronokirby
Copy link
Contributor

Closes #4906.

Describe your changes

This allows the dex and auction components of the old supply app view to become temporarily negative until the end of a block, so that the order of debits and credits within a block doesn't matter.

This should unblock the currently crashing pindexer on mainnet, and one can verify that the dex supply never goes below 0 empirically.

Checklist before requesting a review

  • I have added guiding text to explain how a reviewer should test these changes.

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    pindexer only.

Copy link
Contributor

@conorsch conorsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved the crash I observed earlier.

@conorsch
Copy link
Contributor

To test, I built a container from this PR, deployed it to the instance where the crash in #4906 was observed, and confirmed that pindexer was able to progress past the problematic block and continue to index events.

@conorsch conorsch merged commit 0ac1fbc into main Oct 28, 2024
15 checks passed
@conorsch conorsch deleted the 4906-pindexer-crash branch October 28, 2024 23:13
@conorsch conorsch mentioned this pull request Nov 5, 2024
3 tasks
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

Successfully merging this pull request may close these issues.

pindexer: crash on "out of range integral type conversion"
2 participants