Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

More accurately represent Ethereum RPC filter topics #1079

Merged
merged 2 commits into from
Feb 22, 2019
Merged

Conversation

Fang-
Copy link
Member

@Fang- Fang- commented Feb 21, 2019

Relevant Ethereum JSON RPC docs section.

Rather than a flat list of topics to watch for, it is an indexed/ordered list of topics to watch for in those specific positions. As such, items in that list may either be:

  • zero (null, matches any topic in that position)
  • non-zero (matches one specific topic in that position)
  • a list of topics (matches any one of those topics in that position)

Additionally, topics are always specified using 32 bytes, so there is no need to specify length explicitly.

Rather than a flat list of topics to watch for, it is an indexed list
of topics to watch for in those specific positions. As such, items in
that list may also be zero (null, matches any topic), or a list of
topics (matches any one of those topics).

Additionally, topics are always specified using 32 bytes, so there is
no need to specify length explicitly.
@Fang- Fang- added the %zuse label Feb 21, 2019
@Fang- Fang- changed the base branch from master to next February 21, 2019 12:30
Copy link
Contributor

@philipcmonk philipcmonk left a comment

Choose a reason for hiding this comment

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

Good stuff

@Fang-
Copy link
Member Author

Fang- commented Feb 21, 2019

I updated the hoon structures for incoming Ethereum state to also match. @philipcmonk and I discussed the solution for this out of band. Please confirm this is in line with that and looks sane.

image

god I love MS-era Github

Copy link
Contributor

@philipcmonk philipcmonk left a comment

Choose a reason for hiding this comment

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

Yep, i.topics.log is better

@Fang- Fang- merged commit 04d2117 into next Feb 22, 2019
@Fang- Fang- deleted the eth-rpc-topics branch February 22, 2019 13:08
@ixv ixv mentioned this pull request Mar 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants