Skip to content

Comments

feat(database): add iter and lowest helpers to BlockHashCache#3352

Merged
rakita merged 1 commit intobluealloy:mainfrom
mattsse:block-hash-cache-helpers
Jan 26, 2026
Merged

feat(database): add iter and lowest helpers to BlockHashCache#3352
rakita merged 1 commit intobluealloy:mainfrom
mattsse:block-hash-cache-helpers

Conversation

@mattsse
Copy link
Collaborator

@mattsse mattsse commented Jan 26, 2026

Adds helper methods to BlockHashCache:

  • iter() - Returns an iterator over all cached (block_number, block_hash) pairs
  • lowest() - Returns the entry with the lowest block number

These helpers make it easier to inspect and query the cache contents.

@rakita rakita merged commit 300efbf into bluealloy:main Jan 26, 2026
30 checks passed
@codspeed-hq
Copy link

codspeed-hq bot commented Jan 26, 2026

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing mattsse:block-hash-cache-helpers (e5b6447) with main (70f6f78)

Summary

✅ 173 untouched benchmarks

@github-actions github-actions bot mentioned this pull request Jan 26, 2026
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.

2 participants