diff --git a/evm/Cargo.toml b/evm/Cargo.toml index bf775bbb48bb..8be0758b6a03 100644 --- a/evm/Cargo.toml +++ b/evm/Cargo.toml @@ -28,7 +28,7 @@ tracing-subscriber = "0.3.11" tracing-error = "0.2.0" # Threading/futures -tokio = { version = "1.10.1" } +tokio = { version = "1.10.1", features = ["time"] } parking_lot = "0.12.0" futures = "0.3.21" once_cell = "1.9.0" diff --git a/evm/src/executor/fork/backend.rs b/evm/src/executor/fork/backend.rs index 952a1088d728..cbd7cbe53605 100644 --- a/evm/src/executor/fork/backend.rs +++ b/evm/src/executor/fork/backend.rs @@ -422,7 +422,7 @@ impl SharedBackend { .name("fork-backend-thread".to_string()) .spawn(move || { let rt = tokio::runtime::Builder::new_current_thread() - .enable_io() + .enable_all() .build() .expect("failed to create fork-backend-thread tokio runtime");