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

evm: Implement filter RPCs #2085

Merged
merged 22 commits into from
Jul 3, 2023
Merged

evm: Implement filter RPCs #2085

merged 22 commits into from
Jul 3, 2023

Conversation

shohamc1
Copy link
Contributor

@shohamc1 shohamc1 commented Jun 19, 2023

Adds the following RPCs

  • eth_newFilter
  • eth_newBlockFilter
  • eth_getFilterChanges
  • eth_uninstallFilter
  • eth_getFilterLogs
  • eth_newPendingTransactionFilter

@shohamc1 shohamc1 requested a review from Jouzo June 19, 2023 06:43
@shohamc1 shohamc1 changed the title evm: Implement getFilterChanges and newFilter evm: Implement filter RPCs Jun 19, 2023
@shohamc1 shohamc1 marked this pull request as ready for review June 21, 2023 08:23
Copy link
Collaborator

@Jouzo Jouzo left a comment

Choose a reason for hiding this comment

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

Few nitpicks but logic looks good to me

lib/ain-evm/src/filters.rs Outdated Show resolved Hide resolved
lib/ain-evm/src/filters.rs Outdated Show resolved Hide resolved
lib/ain-evm/src/filters.rs Outdated Show resolved Hide resolved
current_block_height: U256,
) -> usize {
let mut filters = self.filters.write().unwrap();
let mut filter_id = self.filter_id.write().unwrap();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could probably hold this lock less

lib/ain-evm/src/log.rs Outdated Show resolved Hide resolved
@prasannavl prasannavl merged commit b733c07 into master Jul 3, 2023
@prasannavl prasannavl deleted the evm/getfilterchanges branch July 3, 2023 13:20
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