fix: check checkpoint block root exists (#185)

* fix: check checkpoint block root is some

* remove print

* check block root earlier
This commit is contained in:
Noah Citron 2023-01-31 18:40:53 -05:00 committed by GitHub
parent 6b662f903b
commit 7b7dc708f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ impl CheckpointFallback {
Ok(s) => Some(s.clone()),
_ => None,
})
.filter(|s| s.block_root.is_some())
.collect::<Vec<_>>();
// Get the max epoch