Skip to content
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

Make captureEpochAndValidators work in constant time #11210

Merged
merged 6 commits into from
Sep 20, 2024

Conversation

martinvol
Copy link
Contributor

@martinvol martinvol commented Sep 18, 2024

@martinvol martinvol requested a review from a team as a code owner September 18, 2024 18:58
@martinvol martinvol changed the title Martinvol/epoch contract fixes Make captureEpochAndValidators work in constant time Sep 19, 2024

// TODO add emit
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this todo ?

blockEpochNumber = getEpochNumberOfBlock(blockToCheck);
}
return blockToCheck;
function _setFirstBlockOfEpoch() internal onlyL1 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
function _setFirstBlockOfEpoch() internal onlyL1 {
function _setLastKnownFirstBlockOfEpoch() internal onlyL1 {

@martinvol martinvol merged commit df84c5d into feat/l2-epoch-system Sep 20, 2024
38 checks passed
@martinvol martinvol deleted the martinvol/epochContractFixes branch September 20, 2024 13:02
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.

2 participants