-
Notifications
You must be signed in to change notification settings - Fork 1
fix: enable cancun for besu genesis #136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @snigdha920, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request integrates support for the Cancun hardfork into Besu genesis configurations. It achieves this by adding a new parameter, "cancunTime", which allows specifying the activation timestamp for the Cancun upgrade. This change is essential for ensuring that Besu nodes can properly initialize and operate with the latest Ethereum protocol advancements, particularly those introduced by Cancun. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request adds support for the Cancun fork in the Besu genesis generation by including the cancunTime field. The implementation adds the field to the BesuGenesisConfig type and initializes it with a default value of 0 in the BesuGenesisService. This correctly addresses the issue of missing fork configuration. My review includes a suggestion to also allow cancunTime to be configurable to fully align with the PR's stated goal of enabling configuration, which would make the service more flexible.
Remove draft check from container registry login condition so draft PRs can also build and push images.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
To view in Slack, search for: 1765097386.534839 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 4 files
We use the evm version cancun in the smart contracts now, needs to be enabled in besu too: https://github.com/settlemint/dalp/blob/8bb416dd927e78a47ee4de88eaeee844e751cc5b/kit/contracts/hardhat.config.ts#L12 the contracts use the MCOPY opcode (faster memory copy) included in the cancun upgrade
Summary by Sourcery
Enable configuration and default initialization of the Cancun fork activation time in the Besu genesis generation service.
New Features:
Bug Fixes:
Summary by cubic
Enable Cancun fork activation in Besu genesis by adding cancunTime to the genesis config and initializing it to 0 by default. This lets networks set a Cancun activation time and prevents missing-fork configuration issues.
Written for commit a6c439f. Summary will update automatically on new commits.
Summary by Sourcery
Enable Besu genesis configurations to set a Cancun fork activation time and adjust CI to allow container registry login from draft pull requests.
New Features:
Bug Fixes:
CI:
Tests: