-
Notifications
You must be signed in to change notification settings - Fork 296
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
pindexer: crash on "out of range integral type conversion" #4906
Comments
penumbra/crates/bin/pindexer/src/supply.rs Line 584 in fcce631
The reason this happens is because there's no guaranteed ordering between the debit and credit events of a block, so in particular the dex supply can "temporarily" be negative. The simplest fix is probably just to allow this value in the supply app view to be negative, which shouldn't ever be observable unless currently processing the events for a given block. |
Describe the bug
A running instance of
pindexer
versionv0.80.7
recently crashed with error message:After brief investigation, @cronokirby pointed to a possible underflow in how pindexer reconciles VCB events. Possible solutions are to enforce ordering in the emission of ABCI events, or just make pindexer more forgiving. We've already confirmed that total counts of the ins and outs of the dex in a pindexer database sum to 0, which is as expected, so any variation would happen with a single block and should be forgiven.
The text was updated successfully, but these errors were encountered: