Skip to content

Conversation

silvekkk
Copy link
Contributor

@silvekkk silvekkk commented Oct 3, 2025

Introduces get_block_with_hash and convert_block_with_hash to avoid redundant hash computation.

When fetching blocks, we already have the hash (from parameters or storage lookups), but convert_block calls hash_slow() to recompute it. The new helpers pass the hash through instead, saving a lot cycles per query.

DaniPopes added a commit that referenced this pull request Oct 3, 2025
This PR aggregates changes from the following PRs:

- Closes #11957 by @\MozirDmitriy
- Closes #11954 by @\anim001k
- Closes #11953 by @\strmfos
- Closes #11939 by @\silvekkk
@DaniPopes DaniPopes mentioned this pull request Oct 3, 2025
DaniPopes added a commit that referenced this pull request Oct 3, 2025
This PR aggregates changes from the following PRs:

- Closes #11957 by @\MozirDmitriy
- Closes #11954 by @\anim001k
- Closes #11953 by @\strmfos
- Closes #11939 by @\silvekkk
@silvekkk
Copy link
Contributor Author

silvekkk commented Oct 3, 2025

commited the new refactor just now cc @DaniPopes

@onbjerg onbjerg merged commit f5322d9 into foundry-rs:master Oct 6, 2025
16 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants