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

Event indexing improvements #698

Merged
merged 4 commits into from
Jan 13, 2025
Merged

Event indexing improvements #698

merged 4 commits into from
Jan 13, 2025

Conversation

cam-schultz
Copy link
Contributor

@cam-schultz cam-schultz commented Jan 8, 2025

Why this should be merged

  • Removes indexed keywords from byte event fields so that the full data is emitted, rather than the keccak hash.
  • Adds indexed keywords to event fields from which it was missing
    EDIT: These events omitted indexed for a reason. Thanks @geoff-vball for calling that out.

Fixes #689

How this works

See above

How this was tested

CI. Explicitly check Node ID in integration tests.

Note: Unfortunately, the unit tests somewhat mask the implicit hashing done to indexed bytes fields, since the mock event emitted in forge unit tests also perform this hashing. That is why checks like this pass at present. I haven't found a great way to workaround this in unit tests, but the explicit check against emitted Node ID values in the integration tests should provide similar coverage.

How is this documented

N/A

@cam-schultz cam-schultz merged commit 8f7c7b3 into main Jan 13, 2025
17 checks passed
@cam-schultz cam-schultz deleted the event-indexing-improvements branch January 13, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done ✅
Development

Successfully merging this pull request may close these issues.

NodeID is not emitted in ValidatorManager Events
4 participants