Add extra info to block proc. error message

This commit is contained in:
Paul Hauner
2019-04-17 13:59:40 +10:00
parent f592183aa9
commit c3779caede
2 changed files with 11 additions and 3 deletions

View File

@@ -67,7 +67,10 @@ impl_from_beacon_state_error!(BlockProcessingError);
#[derive(Debug, PartialEq)]
pub enum BlockInvalid {
StateSlotMismatch,
ParentBlockRootMismatch,
ParentBlockRootMismatch {
state: Hash256,
block: Hash256,
},
BadSignature,
BadRandaoSignature,
MaxAttestationsExceeded,