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

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

Successfully merging this pull request may close these issues.

2 participants