pub enum BlockValidationErrors {
Show 23 variants
BlockDoesntExtendTip,
InvalidCoinbase(String),
UtxoNotFound(OutPoint),
ScriptValidationError(String),
NullPrevOut,
EmptyInputs,
EmptyOutputs,
ScriptError,
BlockTooBig,
TooManyCoins,
NotEnoughPow,
BadMerkleRoot,
BadWitnessCommitment,
NotEnoughMoney,
FirstTxIsNotCoinbase,
BadCoinbaseOutValue,
EmptyBlock,
BlockExtendsAnOrphanChain,
BadBip34,
InvalidProof,
CoinbaseNotMatured,
UnspendableUTXO,
BIP94TimeWarp,
}Expand description
Represents errors encountered during block validation.
Variants§
BlockDoesntExtendTip
InvalidCoinbase(String)
UtxoNotFound(OutPoint)
ScriptValidationError(String)
NullPrevOut
EmptyInputs
EmptyOutputs
ScriptError
BlockTooBig
TooManyCoins
NotEnoughPow
BadMerkleRoot
BadWitnessCommitment
NotEnoughMoney
FirstTxIsNotCoinbase
BadCoinbaseOutValue
EmptyBlock
BlockExtendsAnOrphanChain
BadBip34
InvalidProof
CoinbaseNotMatured
UnspendableUTXO
BIP94TimeWarp
Trait Implementations§
Source§impl Clone for BlockValidationErrors
impl Clone for BlockValidationErrors
Source§fn clone(&self) -> BlockValidationErrors
fn clone(&self) -> BlockValidationErrors
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockValidationErrors
impl Debug for BlockValidationErrors
Source§impl Display for BlockValidationErrors
impl Display for BlockValidationErrors
Source§impl From<BlockValidationErrors> for BlockchainError
impl From<BlockValidationErrors> for BlockchainError
Source§fn from(e: BlockValidationErrors) -> Self
fn from(e: BlockValidationErrors) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BlockValidationErrors
impl PartialEq for BlockValidationErrors
impl StructuralPartialEq for BlockValidationErrors
Auto Trait Implementations§
impl Freeze for BlockValidationErrors
impl RefUnwindSafe for BlockValidationErrors
impl Send for BlockValidationErrors
impl Sync for BlockValidationErrors
impl Unpin for BlockValidationErrors
impl UnwindSafe for BlockValidationErrors
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more