pub enum BlockValidationErrors {
Show 18 variants
InvalidCoinbase(String),
UtxoAlreadySpent(Txid),
ScriptValidationError(String),
InvalidOutput,
ScriptError,
BlockTooBig,
TooManyCoins,
NotEnoughPow,
BadMerkleRoot,
BadWitnessCommitment,
NotEnoughMoney,
FirstTxIsnNotCoinbase,
BadCoinbaseOutValue,
EmptyBlock,
BlockExtendsAnOrphanChain,
BadBip34,
InvalidProof,
CoinbaseNotMatured,
}
Variants§
InvalidCoinbase(String)
UtxoAlreadySpent(Txid)
ScriptValidationError(String)
InvalidOutput
ScriptError
BlockTooBig
TooManyCoins
NotEnoughPow
BadMerkleRoot
BadWitnessCommitment
NotEnoughMoney
FirstTxIsnNotCoinbase
BadCoinbaseOutValue
EmptyBlock
BlockExtendsAnOrphanChain
BadBip34
InvalidProof
CoinbaseNotMatured
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<BlockValidationErrors> for BlockValidationErrors
impl PartialEq<BlockValidationErrors> for BlockValidationErrors
source§fn eq(&self, other: &BlockValidationErrors) -> bool
fn eq(&self, other: &BlockValidationErrors) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BlockValidationErrors
Auto Trait Implementations§
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