Add check to ensure parent block is in fork choice

This commit is contained in:
Paul Hauner
2020-01-28 11:34:29 +11:00
parent 43b0a63c73
commit ed59327feb
2 changed files with 24 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ fn process_batch<T: BeaconChainTypes>(
);
successful_block_import = true;
}
BlockProcessingOutcome::ParentUnknown { parent } => {
BlockProcessingOutcome::ParentUnknown { parent, .. } => {
// blocks should be sequential and all parents should exist
warn!(
log, "Parent block is unknown";