-
Notifications
You must be signed in to change notification settings - Fork 38
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
Circuit cache dir now uses os cache dir #405
Conversation
@@ -242,6 +243,7 @@ impl ProverStateManager { | |||
/// Initialize global prover state from the configuration. | |||
pub fn initialize(&self) -> anyhow::Result<()> { | |||
info!("initializing prover state..."); | |||
set_circuit_cache_dir_env_if_not_set()?; |
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.
Both the leader
& worker
need to persist circuits, so I thought it made sense to do the env logic inside common. Let me know if anyone prefers this to be in the individual binaries.
Also, do we want a |
- No longer uses a lazy static.
- No longer uses a lazy static.
e79d82c
to
8c10257
Compare
- No longer uses a lazy static.
8c10257
to
993d7e2
Compare
- No longer uses a lazy static.
993d7e2
to
1fea504
Compare
@Nashtare I swear I responded to this last week, not sure what happened... So just to be clear, the |
- Fixed accidently not panicing when an `env` var is not set.
1fea504
to
70cb4db
Compare
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.
I'm good with this overall
- Now attempts to use the OS's specific cache dir to store circuits. - This is done by setting the env var `ZK_EVM_CACHE_DIR` if the user has not already set it, which allows the user to override the circuit cache directory if they want to.
- No longer uses a lazy static.
- Fixed accidently not panicing when an `env` var is not set.
70cb4db
to
f6200c2
Compare
* Circuit cache dir now uses os cache dir (#375) - Now attempts to use the OS's specific cache dir to store circuits. - This is done by setting the env var `ZK_EVM_CACHE_DIR` if the user has not already set it, which allows the user to override the circuit cache directory if they want to. * Requested PR changes for #405 - No longer uses a lazy static. * Requested PR changes for #405 (2) - Fixed accidently not panicing when an `env` var is not set. * Fixed env var not being set in AMPQ mode * Requested PR changes for #405 (3)
Resolves #375.
ZK_EVM_CACHE_DIR
if the user has not already set it, which allows the user to override the circuit cache directory if they want to.