Add tests for importing blocks on invalid parents (#3123)

## Issue Addressed

NA

## Proposed Changes

- Adds more checks to prevent importing blocks atop parent with invalid execution payloads.
- Adds a test for these conditions.

## Additional Info

NA
This commit is contained in:
Paul Hauner
2022-04-05 20:58:16 +00:00
parent bac7c3fa54
commit 42cdaf5840
4 changed files with 111 additions and 16 deletions

View File

@@ -44,6 +44,10 @@ pub enum Error {
IrrelevantDescendant {
block_root: Hash256,
},
ParentExecutionStatusIsInvalid {
block_root: Hash256,
parent_root: Hash256,
},
}
#[derive(Clone, PartialEq, Debug)]