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

Add a Current Block into preconf contract #7

Open
ckartik opened this issue Oct 7, 2023 · 3 comments
Open

Add a Current Block into preconf contract #7

ckartik opened this issue Oct 7, 2023 · 3 comments

Comments

@ckartik
Copy link
Contributor

ckartik commented Oct 7, 2023

We want to add a currentActiveBlock on ethereum, to ensure that a builder can't post a pre-confirmation after the fact.

@ckartik
Copy link
Contributor Author

ckartik commented Oct 18, 2023

@Man-Jain would love any insight you might have here. Especially if you've got insights into the OP-Stack smart-contracts.

@ckartik
Copy link
Contributor Author

ckartik commented Oct 18, 2023

Also worth noting that these contracts are going to be deployed on our OP-Stack based L2.

@Man-Jain
Copy link
Contributor

Not an expert on the OP stack but there's this contract L1Block which is to be deployed on L2 and is updated with the current L1 block data. You can then query this contract to put a check / modifier on the pre-confirantion function.

https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/L1Block.sol#L13 @ckartik

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

No branches or pull requests

2 participants