-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
contracts-bedrock: sequencer-enforced invariants #10791
contracts-bedrock: sequencer-enforced invariants #10791
Conversation
Feat/l2 message validation
feat: buffer gas constraints on l2 message validation thresholds
feat: Handle message validation gas
Definitely not including this in the OP Stack. It adds way too much complexity into the bridge |
I appreciate you opening this PR, definitely recommend doing a design doc first to get buy in before doing any implementation to save time. Left some comments on ethereum-optimism/design-docs#30 |
RELAY_RESERVED_GAS + RELAY_GAS_CHECK_BUFFER | ||
+ _relayMessageValidatorGas(messageValidator, uint64(_message.length)) | ||
) || xDomainMsgSender != Constants.DEFAULT_L2_SENDER | ||
|| !_isRelayMessageValidated(messageValidator, _nonce, _sender, _target, _value, _message) |
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.
This part of the diff is particularly not great to have
Description
Implements the (optional) L1 -> L2 message validation hooks solution to enable sequencer-enforced invariants.
Sequencer-enforced invariants design doc: ethereum-optimism/design-docs#30
Tests
To-do - will add tests if the design is approved.