Skip to content

shim: parallel submission #270

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

Merged
merged 1 commit into from
Mar 25, 2024
Merged

shim: parallel submission #270

merged 1 commit into from
Mar 25, 2024

Conversation

pepyakin
Copy link
Contributor

@pepyakin pepyakin commented Mar 4, 2024

rollkit demo submits a lot of blobs. In my testing I saw
dozens of blobs submitted at the same time. Ofc submitting
those serially won't cut it, esp. so if waiting until
finalization.

This changeset solves the problem by splitting the signing
part, which is still serial, and the submission, which is
now parallel.

As a drive-by fix, all the errors for rollkit are now
encapsulated into an enum.

Closes #259

Copy link
Contributor Author

pepyakin commented Mar 4, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @pepyakin and the rest of your teammates on Graphite Graphite

@pepyakin pepyakin force-pushed the pep-rollkit-downgrade-goda branch from 417ed72 to f6d7847 Compare March 4, 2024 08:33
@pepyakin pepyakin force-pushed the pep-shim-parallel-submission branch from 3cf1316 to 92879ec Compare March 4, 2024 08:33
@pepyakin pepyakin marked this pull request as ready for review March 4, 2024 08:34
@pepyakin pepyakin force-pushed the pep-shim-parallel-submission branch from 92879ec to cc076e1 Compare March 4, 2024 08:35
Base automatically changed from pep-rollkit-downgrade-goda to main March 5, 2024 09:18
rollkit demo submits a lot of blobs. In my testing I saw
dozens of blobs submitted at the same time. Ofc submitting
those serially won't cut it, esp. so if waiting until
finalization.

This changeset solves the problem by splitting the signing
part, which is still serial, and the submission, which is
now parallel.

As a drive-by fix, all the errors for rollkit are now
encapsulated into an enum.

Closes #259
Copy link
Contributor

@gabriele-0201 gabriele-0201 left a comment

Choose a reason for hiding this comment

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

Great implementation. It makes it possible to have more freedom in dock implementations. I like the RollkitDockError enum, it makes the code a lot nicer!

The only thing is that I would pay more attention to nonce usage. Users should be more aware of how it is handled, but this is addressed in the follow-up PR

@pepyakin pepyakin force-pushed the pep-shim-parallel-submission branch from cc076e1 to 2f18d88 Compare March 5, 2024 09:53
@pepyakin pepyakin merged commit 72c6288 into main Mar 25, 2024
@pepyakin pepyakin deleted the pep-shim-parallel-submission branch March 25, 2024 08:35
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.

shim: block submission is too slow
2 participants