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

Extended Event filtering #12

Open
ggwpez opened this issue Jun 11, 2021 · 0 comments
Open

Extended Event filtering #12

ggwpez opened this issue Jun 11, 2021 · 0 comments

Comments

@ggwpez
Copy link

ggwpez commented Jun 11, 2021

Location: [backend/eth/subscription]

Problem: The event filtering of go-ethereum allows to pass a query.
A query is a set of sets of arguments, where at least on set of arguments must match. Missing parameters are treated as wildcard.

The problem is that eg. in the Adjudicator we want to filter for ChannelUpdate events with a specific ChannelID and Phase.
Since these are the first and third arguments, it does not seem possible to directly filter for them. It would work if they were the first and second arguments though.

Solution: One possibility would be to replacing the Filter [][]interface{} field with an easier to use Predicate func(Event) bool function pointer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant