mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-02 16:21:42 +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(_) => {
|
||||
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),
|
||||
// TODO(gloas): Remove this once Gloas is implemented
|
||||
GloasNotImplemented,
|
||||
Unexpected(String),
|
||||
}
|
||||
|
||||
easy_from_to!(BlockProcessingError, BlockProductionError);
|
||||
|
||||
Reference in New Issue
Block a user