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

feat: 4844 implementation #109

Merged
merged 167 commits into from
Jan 24, 2024
Merged

feat: 4844 implementation #109

merged 167 commits into from
Jan 24, 2024

Conversation

gzeoneth
Copy link
Member

@gzeoneth gzeoneth commented Jan 17, 2024

Was #96, added 3b59719 to remove certain sequencer inbox optimizations.

Added postupgradeinit for the challenge manager
)
{
bytes32[] memory dataHashes = reader4844.getDataHashes();
if (dataHashes.length == 0) revert MissingDataHashes();
Copy link
Contributor

Choose a reason for hiding this comment

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

No change necessary, I just wanted to point out that this is a great check and we should keep it. Specifically, I'm worried that some RPC providers that aren't ready for 4844 yet might drop the blobVersionedHashes field from eth_estimateGas and would otherwise return too low of an estimate. Reverting here prevents that from happening.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Interesting point. In the GasRefundEnabled we branch based on this statement so that would give the wrong gas estimate. But that code path should only be triggered when this one reverts, so we should be fine there.

@gzeoneth gzeoneth requested a review from yahgwai January 24, 2024 09:45
yahgwai
yahgwai previously approved these changes Jan 24, 2024
src/bridge/SequencerInbox.sol Outdated Show resolved Hide resolved
)
{
bytes32[] memory dataHashes = reader4844.getDataHashes();
if (dataHashes.length == 0) revert MissingDataHashes();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Interesting point. In the GasRefundEnabled we branch based on this statement so that would give the wrong gas estimate. But that code path should only be triggered when this one reverts, so we should be fine there.

@yahgwai yahgwai self-requested a review January 24, 2024 11:08
yahgwai
yahgwai previously approved these changes Jan 24, 2024
@gzeoneth gzeoneth merged commit 7c841ee into develop Jan 24, 2024
5 checks passed
@gzeoneth gzeoneth deleted the 4844-only branch January 24, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants