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

validation: verify eth-da via latest batcher tx #421

Merged
merged 5 commits into from
Jul 30, 2024

Conversation

bitwiseguy
Copy link
Collaborator

Description

Use the updated op-service/eth packages CheckRecentTxs to perform a binary search to find the most recent batcher tx. If the tx exists within the last ChainConfig.SequencerWindowSize blocks on mainnet, then the chain passes the test for eth-da. Only checking eth-da for now.

Additional context

Follow-up work will be to detect and verify alt-da, as described in #406

Metadata

Closes #400

Base automatically changed from ss/add-data-availability-type to main July 26, 2024 16:49
@bitwiseguy bitwiseguy marked this pull request as ready for review July 26, 2024 18:01
@bitwiseguy bitwiseguy requested review from a team as code owners July 26, 2024 18:01
@bitwiseguy bitwiseguy requested review from ajsutton, clabby and refcell and removed request for ajsutton and clabby July 26, 2024 18:01
Copy link
Member

@sebastianst sebastianst left a comment

Choose a reason for hiding this comment

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

Note this also needs a rust reviewer now.

validation/data-availability-type_test.go Outdated Show resolved Hide resolved
validation/data-availability-type_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@refcell refcell left a comment

Choose a reason for hiding this comment

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

Nice!

@bitwiseguy bitwiseguy merged commit 52d19d7 into main Jul 30, 2024
12 checks passed
@bitwiseguy bitwiseguy deleted the ss/datype-validation branch July 30, 2024 14:01
This pull request was closed.
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.

validation: autodetect, store and continuously validate Data Availability mode.
3 participants