[verify] Use impl_error!() whenever possible

This commit is contained in:
Alekos Filini 2021-06-18 13:21:21 +02:00
parent 975905c8ea
commit 50597fd73f
No known key found for this signature in database
GPG Key ID: 431401E4A4530061

View File

@ -100,11 +100,7 @@ impl From<Error> for VerifyError {
VerifyError::Global(Box::new(other)) VerifyError::Global(Box::new(other))
} }
} }
impl From<bitcoinconsensus::Error> for VerifyError { impl_error!(bitcoinconsensus::Error, Consensus, VerifyError);
fn from(other: bitcoinconsensus::Error) -> Self {
VerifyError::Consensus(other)
}
}
#[cfg(test)] #[cfg(test)]
mod test { mod test {