mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-29 02:33:48 +00:00
Add unexpected error variant
This commit is contained in:
@@ -692,11 +692,8 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO(gloas) we should never receive a blinded response.
|
|
||||||
// Should return some type of `Unexpected` error variant as this should never happen
|
|
||||||
// in the V4 block production flow
|
|
||||||
BlockProposalContentsType::Blinded(_) => {
|
BlockProposalContentsType::Blinded(_) => {
|
||||||
return Err(BlockProductionError::GloasNotImplemented);
|
return Err(BlockProductionError::Unexpected("Should never produce a blinded block post-Gloas".to_owned()));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -321,6 +321,7 @@ pub enum BlockProductionError {
|
|||||||
SszTypesError(ssz_types::Error),
|
SszTypesError(ssz_types::Error),
|
||||||
// TODO(gloas): Remove this once Gloas is implemented
|
// TODO(gloas): Remove this once Gloas is implemented
|
||||||
GloasNotImplemented,
|
GloasNotImplemented,
|
||||||
|
Unexpected(String),
|
||||||
}
|
}
|
||||||
|
|
||||||
easy_from_to!(BlockProcessingError, BlockProductionError);
|
easy_from_to!(BlockProcessingError, BlockProductionError);
|
||||||
|
|||||||
Reference in New Issue
Block a user