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

eth/filters: enforce the limit of topics and sub-topics #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

minh-bq
Copy link
Contributor

@minh-bq minh-bq commented Feb 18, 2025

Currently, geth's will return [] for any len(topics) > 4 log filter. The
EVM only supports up to four logs, via LOG4 opcode, so larger criterias fail.
This change makes the filter query exit early in those cases.

This PR adds a limit of 1000 to the "inner" topics in a filter-criteria.

jsvisa and others added 2 commits February 18, 2025 15:06
commit ethereum/go-ethereum@e38b9f1.

Currently, geth's will return `[]` for any `len(topics) > 4` log filter. The
EVM only supports up to four logs, via LOG4 opcode, so larger criterias fail.
This change makes the filter query exit early in those cases.
commit ethereum/go-ethereum@ef5ac3f.

This PR adds a limit of 1000 to the "inner" topics in a filter-criteria
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.

3 participants