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

fix(raiko): avoid duplicate image uploads #439

Merged
merged 3 commits into from
Dec 25, 2024
Merged

fix(raiko): avoid duplicate image uploads #439

merged 3 commits into from
Dec 25, 2024

Conversation

smtmfft
Copy link
Contributor

@smtmfft smtmfft commented Dec 24, 2024

The block proof ELF is approximately 8 MB, and is being uploaded every time. Using an initialization-once approach to avoid redundant uploads

provers/risc0/driver/src/bonsai.rs Outdated Show resolved Hide resolved
@smtmfft
Copy link
Contributor Author

smtmfft commented Dec 24, 2024

Oh, yes, risc0 checked the image id. I update sp1 logic and thought the risc0 maybe the same.
Please help to double check the sp1 part. I will revert risc0 changes.

@smtmfft smtmfft requested a review from keroro520 December 24, 2024 09:06
@smtmfft
Copy link
Contributor Author

smtmfft commented Dec 24, 2024

seems sp1 can not easily bypass the upload, although only optimizing the setup part makes the process slightly better.

Copy link
Contributor

@keroro520 keroro520 left a comment

Choose a reason for hiding this comment

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

LGTM

@keroro520
Copy link
Contributor

keroro520 commented Dec 24, 2024

seems sp1 can not easily bypass the upload, although only optimizing the setup part makes the process slightly better.

succinctlabs/sp1#1875 implement the v2 sdk, which gracefully handle the image upload: register_program

We can switch to the new version of SDK once it becomes stable. @smtmfft

@smtmfft
Copy link
Contributor Author

smtmfft commented Dec 24, 2024

cool, so far we rely on their network service, let's see when they will update the service, probably in 4.0.0.

@smtmfft smtmfft enabled auto-merge December 25, 2024 08:15
@smtmfft smtmfft added this pull request to the merge queue Dec 25, 2024
Merged via the queue into main with commit 5804f23 Dec 25, 2024
3 checks passed
@smtmfft smtmfft deleted the tiny-fix branch December 25, 2024 09:21
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