diff --git a/bin/reth/src/runner.rs b/bin/reth/src/runner.rs index 33b21673f..8ca0b9940 100644 --- a/bin/reth/src/runner.rs +++ b/bin/reth/src/runner.rs @@ -114,11 +114,7 @@ pub struct CliContext { /// Creates a new default tokio multi-thread [Runtime](tokio::runtime::Runtime) with all features /// enabled pub fn tokio_runtime() -> Result { - tokio::runtime::Builder::new_multi_thread() - .enable_all() - // increase stack size, mostly for RPC calls that use the evm: and - .thread_stack_size(8 * 1024 * 1024) - .build() + tokio::runtime::Builder::new_multi_thread().enable_all().build() } /// Runs the given future to completion or until a critical task panicked diff --git a/crates/rpc/rpc/src/blocking_pool.rs b/crates/rpc/rpc/src/blocking_pool.rs index 07a2849d6..ef3dbe7d7 100644 --- a/crates/rpc/rpc/src/blocking_pool.rs +++ b/crates/rpc/rpc/src/blocking_pool.rs @@ -71,11 +71,7 @@ impl BlockingTaskPool { /// Uses [`rayon::ThreadPoolBuilder::build`](rayon::ThreadPoolBuilder::build) defaults but /// increases the stack size to 8MB. pub fn build() -> Result { - Self::builder() - // increase stack size, mostly for RPC calls that use the evm: and - .stack_size(8 * 1024 * 1024) - .build() - .map(Self::new) + Self::builder().build().map(Self::new) } /// Asynchronous wrapper around Rayon's