Skip to content

fix(t8n): preserve full-range EVM timestamps - #1710

Open
studiokvc wants to merge 6 commits into
ipsilon:masterfrom
studiokvc:fix/t8n-unsigned-timestamps
Open

studiokvc wants to merge 6 commits into
ipsilon:masterfrom
studiokvc:fix/t8n-unsigned-timestamps

Conversation

@studiokvc

Copy link
Copy Markdown

Fixes #1492

The t8n state-transition path stored block timestamps as signed int64_t values. Inputs above 2^63-1 could wrap before the pre-Merge difficulty calculation, diverging from other execution clients.

This change keeps BlockInfo timestamps and the difficulty API unsigned, loads currentTimestamp and parentTimestamp as uint64_t, and bounds the signed difficulty adjustment without narrowing the timestamp delta.

The change is limited to the test-transition tooling and preserves existing behavior for ordinary timestamps.

Tests and builds were not run locally; this contribution was prepared through GitHub's web editor.

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.

t8n: currentDifficulty diverges for currentTimestamp > 2^63-1

1 participant