From 7b7dc708f8c3f9bac43ae415387cb7bc78642dea Mon Sep 17 00:00:00 2001 From: Noah Citron Date: Tue, 31 Jan 2023 18:40:53 -0500 Subject: [PATCH] fix: check checkpoint block root exists (#185) * fix: check checkpoint block root is some * remove print * check block root earlier --- config/src/checkpoints.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/config/src/checkpoints.rs b/config/src/checkpoints.rs index 35a73be..210838a 100644 --- a/config/src/checkpoints.rs +++ b/config/src/checkpoints.rs @@ -157,6 +157,7 @@ impl CheckpointFallback { Ok(s) => Some(s.clone()), _ => None, }) + .filter(|s| s.block_root.is_some()) .collect::>(); // Get the max epoch