Skip to content

Conversation

@lakshya-sky
Copy link
Contributor

@lakshya-sky lakshya-sky commented Dec 23, 2025

Motivation

Adds Amsterdam fork which is required for implementing engine_newPayloadV5 and such.

Description

  • Updates BlobSchedule and ChainConfig for Amsterdam fork details.
  • Currently follows same signature as BPO5, hence they are kept Optional.

NOTE: We would have to update revm to v30.0.0 when Amsterdam support was added.

Copilot AI review requested due to automatic review settings December 23, 2025 16:14
@lakshya-sky lakshya-sky requested a review from a team as a code owner December 23, 2025 16:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for the Amsterdam fork to the chain configuration, which is required for implementing engine_newPayloadV5. The changes follow the existing pattern established for BPO5 and other recent forks.

Key Changes:

  • Added amsterdam field to BlobSchedule and amsterdam_time to ChainConfig structs
  • Added Amsterdam variant to the Fork enum with value 25
  • Implemented is_amsterdam_activated helper method for activation checks

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +353 to +356
pub fn is_amsterdam_activated(&self, block_timestamp: u64) -> bool {
self.amsterdam_time
.is_some_and(|time| time <= block_timestamp)
}
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

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

The is_amsterdam_activated method is placed before is_bpo1_activated, breaking the chronological ordering convention used for other fork activation methods. The methods should follow the chronological fork order (oldest to newest) for consistency. Consider moving this method to after is_bpo5_activated to maintain the established pattern: Cancun → Shanghai → Prague → Osaka → BPO1-5 → Amsterdam.

Copilot uses AI. Check for mistakes.
@lakshya-sky
Copy link
Contributor Author

We would have to update revm to v30.0.0 when Amsterdam support was added.

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.

1 participant