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

WIP DAB interface improvement #97

Merged
merged 10 commits into from
Mar 13, 2024
Merged

Conversation

christophercampbell
Copy link

This is a WIP draft PR for DAB interface improvement, described here.

Copy link
Collaborator

@arnaubennassar arnaubennassar left a comment

Choose a reason for hiding this comment

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

Awesome job @christophercampbell ! The PR needs a bit of polishing, but this goes beyond the expectations for the task 🎉

dataavailability/dataavailability.go Outdated Show resolved Hide resolved
dataavailability/dataavailability.go Outdated Show resolved Hide resolved
dataavailability/dataavailability.go Outdated Show resolved Hide resolved
dataavailability/dataavailability.go Outdated Show resolved Hide resolved
dataavailability/dataavailability.go Outdated Show resolved Hide resolved
dataavailability/dataavailability.go Outdated Show resolved Hide resolved
dataavailability/dataavailability.go Show resolved Hide resolved
dataavailability/datacommittee/datacommittee.go Outdated Show resolved Hide resolved
etherman/etherman.go Outdated Show resolved Hide resolved
etherman/etherman.go Show resolved Hide resolved
@arnaubennassar
Copy link
Collaborator

As a general note, and for further work, definitely out of scope for this PR: maybe it's worth exploring the possibility of different sources failing partially: for instance have some batches on local, some others on trusted and some others on DA, in a way that we dont need to ask for batches that already fetched from other sources

@christophercampbell
Copy link
Author

Yes! I started to build it that way (thus the continue parts you called out), but it was getting complicated, and I thought as a first pass it should be simpler

@christophercampbell christophercampbell marked this pull request as ready for review March 11, 2024 17:20
dataavailability/datacommittee/datacommittee.go Outdated Show resolved Hide resolved
etherman/etherman_test.go Outdated Show resolved Hide resolved
etherman/etherman.go Outdated Show resolved Hide resolved
@vcastellm vcastellm requested a review from a team March 12, 2024 15:35
etherman/etherman.go Outdated Show resolved Hide resolved
state/pgstatestorage/pgstatestorage.go Outdated Show resolved Hide resolved
state/pgstatestorage/pgstatestorage.go Show resolved Hide resolved
Copy link
Collaborator

@Stefan-Ethernal Stefan-Ethernal left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -58,6 +58,40 @@ func (c *Client) BatchByNumber(ctx context.Context, number *big.Int) (*types.Bat
return result, nil
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

BatchByNumber could probably invoke BatchesByNumbers. WDYT?

jsonrpc/endpoints_zkevm.go Show resolved Hide resolved
@christophercampbell christophercampbell merged commit 8a7f8cf into develop Mar 13, 2024
18 checks passed
@christophercampbell christophercampbell deleted the dab-interface-improvement branch March 13, 2024 18:16
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.

3 participants