-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
op-program: Support running in offline mode. #5466
Conversation
|
Hey @ajsutton! This PR has merge conflicts. Please fix them before continuing review. |
09a1965
to
4739b0f
Compare
214cf01
to
a12652d
Compare
Hey @ajsutton! This PR has merge conflicts. Please fix them before continuing review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
a12652d
to
69cb291
Compare
✅ Deploy Preview for opstack-docs canceled.
|
69cb291
to
3dfc570
Compare
Description
Update the setup code for op-program to support running in offline mode. A
--datadir
CLI arg is added to specify the directory to use to store preimage data. If the--l1
and--l2
options are specified the preimages are fetched, otherwise only the pre-populated preimages are used to replay the derivation.In-memory kv store is still supported in fetching mode if no
--datadir
is supplied because it makes testing easier (and the host part of op-program is essentially just a test harness).Tests
Tests for the new CLI arg and config option. Will need to add e2e tests to cover the setup changes.
Additional context
Builds on #5463, #5465 and #5452
Metadata