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 #662

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

Conversation

minh-bq
Copy link
Collaborator

@minh-bq minh-bq commented Jan 21, 2025

  • eth/filters: exit early if topics-filter has more than 4 topics (#28494)

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.

  • eth/filters: enforce topic-limit early on filter criterias (#29535)

commit ethereum/go-ethereum@ef5ac3f.

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

jsvisa and others added 2 commits January 21, 2025 13:47
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
@chiphamskymavis chiphamskymavis self-requested a review January 21, 2025 07:26
@chiphamskymavis chiphamskymavis added this to the v2.9.1 milestone Jan 21, 2025
Copy link
Contributor

@chiphamskymavis chiphamskymavis left a comment

Choose a reason for hiding this comment

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

LGTM

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.

4 participants