From db6cd05bfe32881772ebd37891d3cc6cbdbcb956 Mon Sep 17 00:00:00 2001 From: Tumas Date: Fri, 17 May 2024 16:18:14 +0300 Subject: [PATCH] apply stubbed availablity check for parent --- fork_choice_control/src/mutator.rs | 4 +++- grandine/src/main.rs | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/fork_choice_control/src/mutator.rs b/fork_choice_control/src/mutator.rs index 6b9fc6e6..da41b4df 100644 --- a/fork_choice_control/src/mutator.rs +++ b/fork_choice_control/src/mutator.rs @@ -486,7 +486,9 @@ where let missing_column_indices = self.store.indices_of_missing_data_columns(&parent.block); - if missing_column_indices.len() * 2 < NumberOfColumns::USIZE { + if missing_column_indices.len() * 2 < NumberOfColumns::USIZE + || !self.store.is_forward_synced() + { self.retry_block(wait_group, pending_block); } else { info!( diff --git a/grandine/src/main.rs b/grandine/src/main.rs index 03d32b70..dc0deaaa 100644 --- a/grandine/src/main.rs +++ b/grandine/src/main.rs @@ -209,6 +209,10 @@ impl Context { )? }; + Feature::DebugP2p.enable(); + + log::info!("CHAIN CONFIG: {chain_config:#?}"); + let eth1_chain = Eth1Chain::new( chain_config.clone_arc(), eth1_config.clone_arc(),