From 48d6a9c5dcc0bd6f3bb26e901d4912cdaf8b4fc3 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 8 Jun 2023 19:56:12 +0200 Subject: [PATCH] fix: increase tokio thread stack size 8MB (#3071) --- bin/reth/src/runner.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/reth/src/runner.rs b/bin/reth/src/runner.rs index a28c33800a..6f9277c42b 100644 --- a/bin/reth/src/runner.rs +++ b/bin/reth/src/runner.rs @@ -114,7 +114,11 @@ 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().build() + 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() } /// Runs the given future to completion or until a critical task panicked