Skip to content

Commit

Permalink
fix: use current runtime handle
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected committed Oct 25, 2024
1 parent 2608ac4 commit 321b9d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/engine/tree/src/tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ use reth_stages_api::ControlFlow;
use reth_trie::{updates::TrieUpdates, HashedPostState, TrieInput};
use reth_trie_parallel::parallel_root::{ParallelStateRoot, ParallelStateRootError};
use std::{
cmp::{max, Ordering},
cmp::Ordering,
collections::{btree_map, hash_map, BTreeMap, VecDeque},
fmt::Debug,
ops::Bound,
Expand Down Expand Up @@ -2223,8 +2223,7 @@ where
let mut modified_block = block.clone();
// modified_block.body.transactions = txs;
modified_block.body.transactions = vec![txs];

tokio::task::spawn_blocking(move || {
std::thread::spawn(move || {
let cached_state_provider = CachedStateProvider::new(
cloned_state_provider,
cloned_code_cache,
Expand Down

0 comments on commit 321b9d3

Please sign in to comment.