Enum bdk::wallet::verify::VerifyError [−][src]
pub enum VerifyError {
MissingInputTx(Txid),
InvalidInput(OutPoint),
Consensus(Error),
Global(Box<Error>),
}
This is supported on crate feature
verify
only.Expand description
Error during validation of a tx agains the consensus rules
Variants
MissingInputTx(Txid)
The transaction being spent is not available in the database or the blockchain client
Tuple Fields of MissingInputTx
0: Txid
InvalidInput(OutPoint)
The transaction being spent doesn’t have the requested output
Tuple Fields of InvalidInput
0: OutPoint
Consensus(Error)
Consensus error
Tuple Fields of Consensus
0: Error
Generic error
It has to be wrapped in a Box
since Error
has a variant that contains this enum
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for VerifyError
impl Send for VerifyError
impl Sync for VerifyError
impl Unpin for VerifyError
impl !UnwindSafe for VerifyError
Blanket Implementations
pub fn as_fail(&self) -> &(dyn Fail + 'static)
pub fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to Self
into a dynamic trait object of Fail
.
Mutably borrows from an owned value. Read more