Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

fix: resolve hardfork for blocks by blocknumber and timestamp #4455

Merged
merged 16 commits into from
Jul 3, 2023

Conversation

jeffsmale90
Copy link
Contributor

@jeffsmale90 jeffsmale90 commented Jun 26, 2023

Starting with Shanghai, hardforks are determined by timestamp, rather than block number. When resolving the hardfork to use for a given block, we now consider the blocknumber and the timestamp.

fixes: #4450 (in that the correct hardfork is now resolved, which is not mergeForkIdTransition)

See #4463

…able, just fetch from the fork ¯\_(ツ)_/¯
…to instantiate a transaction in order to serialize it for the database. Except where we need the effective gas price for an eip-1559 fee market transaction, because we need to know the block basefeepergas :(
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 27, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8fd2a6c
Status: ✅  Deploy successful!
Preview URL: https://8392f08b.ganache.pages.dev
Branch Preview URL: https://fix-hardforkbytimestamp.ganache.pages.dev

View logs

@jeffsmale90 jeffsmale90 changed the title Fix/hardfork by timestamp fix: support resolving hardfork by timestamp Jun 27, 2023
@jeffsmale90 jeffsmale90 changed the title fix: support resolving hardfork by timestamp fix: support resolving hardfork by timestamp when forking Jun 27, 2023
@jeffsmale90 jeffsmale90 changed the title fix: support resolving hardfork by timestamp when forking fix: resolve hardfork for blocks on forked network by timestamp Jun 28, 2023
@jeffsmale90 jeffsmale90 marked this pull request as ready for review June 29, 2023 04:10
@jeffsmale90 jeffsmale90 changed the title fix: resolve hardfork for blocks on forked network by timestamp fix: resolve hardfork for blocks by blocknumber and timestamp Jun 29, 2023
@jeffsmale90 jeffsmale90 requested a review from davidmurdoch June 29, 2023 23:57
@jeffsmale90 jeffsmale90 merged commit 893b01b into develop Jul 3, 2023
@jeffsmale90 jeffsmale90 deleted the fix/hardforkByTimestamp branch July 3, 2023 23:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error "Cannot mix BigInt and other types" when debugging on a forked chain
2 participants