Skip to content

test(spec-specs): add unit tests for get_last_256_block_hashes - #3397

Merged
spencer-tb merged 3 commits into
ethereum:forks/amsterdamfrom
shubham5080:test/get-last-256-block-hashes
Aug 24, 2026
Merged

spencer-tb merged 3 commits into
ethereum:forks/amsterdamfrom
shubham5080:test/get-last-256-block-hashes

Conversation

@shubham5080

@shubham5080 shubham5080 commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds direct unit tests for Frontier get_last_256_block_hashes (empty / 1 / <256 / 255 / 256 / 257 blocks, hash order, most-recent keccak). EEST BLOCKHASH tests go through t8n and do not exercise this helper. Asked in #el-testing before starting.

TODO removed only on Frontier for now; other forks still have the copy.

Related Issues or PRs

N/A.

Checklist

  • Ran fast static checks to avoid CI fails: just static
  • PR title has the form <type>(<area>): <title>

Cute Animal Picture

cat

Pin empty, short, 256-window, and overflow chains on the Frontier helper, which EEST BLOCKHASH tests do not call.
@codecov

codecov Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.54%. Comparing base (5b2b22c) to head (7e75290).
⚠️ Report is 23 commits behind head on forks/amsterdam.

Additional details and impacted files
@@               Coverage Diff                @@
##           forks/amsterdam    #3397   +/-   ##
================================================
  Coverage            93.53%   93.54%           
================================================
  Files                  624      624           
  Lines                37070    37074    +4     
  Branches              3394     3394           
================================================
+ Hits                 34675    34681    +6     
+ Misses                1645     1644    -1     
+ Partials               750      749    -1     
Flag Coverage Δ
unittests 93.54% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@spencer-tb spencer-tb added C-test Category: test A-spec-tests Area: tests for specifications e.g. json_infra labels Aug 20, 2026

@spencer-tb spencer-tb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@spencer-tb spencer-tb changed the title test(spec): add unit tests for get_last_256_block_hashes test(spec-specs): add unit tests for get_last_256_block_hashes Aug 24, 2026
@spencer-tb
spencer-tb merged commit 263606b into ethereum:forks/amsterdam Aug 24, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-spec-tests Area: tests for specifications e.g. json_infra C-test Category: test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants