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

sort eth_getLogs calls by logIndex #415

Open
SebastienGllmt opened this issue Aug 10, 2024 · 0 comments
Open

sort eth_getLogs calls by logIndex #415

SebastienGllmt opened this issue Aug 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@SebastienGllmt
Copy link
Contributor

Right now, the Primitive processing flow for EVM looks like this:

  1. Requests all primitives requires for a specific block range
  2. Aggregate all the primitives returned from (1), and sort them by blockNumber (this is done in the function groupCdeData)

The problem is that blocks can contain many different logs inside them! We want to ensure that Paima Engine parses events from these logs in the same order they were emitted onchain, but groupCdeData doesn't do this at the moment. Fortunately, there is a field logIndex for exactly this purpose, and we just need to integrate it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant