From 3eeca7650ba0fcf50c0faf3e4e65ee89f1f9e08b Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Wed, 24 Jul 2024 11:57:07 +0200 Subject: [PATCH] chore: use dl single block (#9751) --- crates/engine/tree/src/tree/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/engine/tree/src/tree/mod.rs b/crates/engine/tree/src/tree/mod.rs index 70a75f9fde..7b96713ffa 100644 --- a/crates/engine/tree/src/tree/mod.rs +++ b/crates/engine/tree/src/tree/mod.rs @@ -40,7 +40,7 @@ use reth_rpc_types::{ use reth_stages_api::ControlFlow; use reth_trie::HashedPostState; use std::{ - collections::{BTreeMap, HashMap, HashSet}, + collections::{BTreeMap, HashMap}, ops::Deref, sync::{mpsc::Receiver, Arc}, }; @@ -1018,7 +1018,7 @@ where } else { // This happens when the missing parent is on an outdated // sidechain and we can only download the missing block itself - DownloadRequest::BlockSet(HashSet::from_iter([missing_parent.hash])) + DownloadRequest::single_block(missing_parent.hash) }; Some(TreeEvent::Download(request))