Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

chore(contracts): store the master chain block timestamp when syncing#1

Merged
xenoliss merged 2 commits intomainfrom
baptiste/master-block-timestamp
Dec 6, 2024
Merged

chore(contracts): store the master chain block timestamp when syncing#1
xenoliss merged 2 commits intomainfrom
baptiste/master-block-timestamp

Conversation

@xenoliss
Copy link
Copy Markdown
Contributor

@xenoliss xenoliss commented Dec 6, 2024

Switch from using the L1 block timestamp to using the master (L2) block timestamp when syncing the Keystore config.
Also rolls back the OutputRoot prefix&suffix pattern for now, but we might re-add the suffix part in the future.

Copy link
Copy Markdown
Collaborator

@niran niran left a comment

Choose a reason for hiding this comment

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

Looks good.

PartialOutputRootPreimages partialOutputRootPreimages;
/// @dev The master L2 block header, encoded in RLP format.
/// NOTE: Its hash is computed to complete the `partialOutputRootPreimages`.
bytes masterL2BlockHeaderRlp;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It might be worth moving this into the OutputRootPreimages struct so it's not "partial" anymore and doesn't need so much explanation. I think it's easier to explain that the header needs to be hashed first.

@xenoliss xenoliss merged commit 673fe14 into main Dec 6, 2024
@xenoliss xenoliss deleted the baptiste/master-block-timestamp branch December 6, 2024 21:04
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.

2 participants