consensus: add #[source] attributes to chain errors

This commit is contained in:
Jane Lusby 2020-10-16 15:18:09 -07:00 committed by Deirdre Connolly
parent 8a64c056fb
commit c0aa1b477e
1 changed files with 2 additions and 2 deletions

View File

@ -48,9 +48,9 @@ where
#[derive(Debug, Display, Error)]
pub enum VerifyChainError {
/// block could not be checkpointed
Checkpoint(VerifyCheckpointError),
Checkpoint(#[source] VerifyCheckpointError),
/// block could not be verified
Block(VerifyBlockError),
Block(#[source] VerifyBlockError),
}
impl<S> Service<Arc<Block>> for ChainVerifier<S>