Skip to content

eth/filters: Avoid copy the whole logs when TxHash is empty #31672

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

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

Conversation

mask-pp
Copy link
Contributor

@mask-pp mask-pp commented Apr 18, 2025

  1. The body can be cached by eth/backend, so we don't need to handle it in logCacheElem again.
  2. Set TxHash when collecting the block's logs if it's empty, and also avoid copying the matched logs.

@mask-pp mask-pp requested a review from rjl493456442 as a code owner April 18, 2025 14:19
@mask-pp mask-pp changed the title eth/filters: Upgrade filter system eth/filters: Avoid copy the whole logs when TxHash is empty Apr 19, 2025
@rjl493456442
Copy link
Member

@s1na can you please take a look? Any particular reason to resolve the block body in a separate step?

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