-
Notifications
You must be signed in to change notification settings - Fork 604
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
Cant recreate evm with ContextWithHandlerCfg
#1126
Comments
After some digging let cfg = ContextWithHandlerCfg::new(self.ctx_with_handler.context.clone(), self.ctx_with_handler.cfg.clone());
Evm::builder().with_context_with_handler_cfg(cfg).build(); Why i can But |
You can't as there is no Something similar to: revm/crates/revm/src/context.rs Lines 26 to 36 in 1411784
|
what about
|
This would mean creating a new struct with |
After read this issue: #1062.
I got the concept of
recreate
evm, butContextWithHandlerCfg
doesnt haveclone
, so what the proper way to achive multi-threading evm instance.Also i want
db
to be shared cross all threads like when i callinsert_account_info
in thread effect all other threads.The text was updated successfully, but these errors were encountered: