From a81c1e44a987fc326ba9aa0a3a4c97f3c532cb42 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 4 Jul 2024 11:35:35 +0200 Subject: [PATCH] perf: spawn eth proof on IO pool (#9293) --- crates/rpc/rpc-eth-api/src/helpers/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rpc/rpc-eth-api/src/helpers/state.rs b/crates/rpc/rpc-eth-api/src/helpers/state.rs index 1f07f35ae327..50678a877678 100644 --- a/crates/rpc/rpc-eth-api/src/helpers/state.rs +++ b/crates/rpc/rpc-eth-api/src/helpers/state.rs @@ -103,7 +103,7 @@ pub trait EthState: LoadState + SpawnBlocking { return Err(EthApiError::ExceedsMaxProofWindow) } - Ok(self.spawn_tracing(move |this| { + Ok(self.spawn_blocking_io(move |this| { let state = this.state_at_block_id(block_id)?; let storage_keys = keys.iter().map(|key| key.0).collect::>(); let proof = state.proof(address, &storage_keys)?;