pub enum RuleError {
Show 22 variants
RejectTxRule(TxRuleError),
RejectMissingOutpoint,
RejectAlreadyAccepted(Hash),
RejectDuplicate(Hash),
RejectDoubleSpendInMempool(TransactionOutpoint, Hash),
RejectRbfNoDoubleSpend,
RejectRbfTooManyDoubleSpendingTransactions,
RejectMempoolIsFull,
RejectNonStandard(Hash, String),
RejectImmatureSpend(TxRuleError),
RejectMissingTransaction(Hash),
RejectBadOrphanMass(u64, u64),
RejectDuplicateOrphan(Hash),
RejectDoubleSpendOrphan(Hash, Hash),
RejectDisallowedOrphan(Hash),
RejectMissingOrphanOutpoint(usize, Hash, TransactionOutpoint),
RejectMissingOrphanTransaction(Hash),
RejectOrphanPoolIsFull(usize, u64),
RejectCycleInMempoolTransactions,
RejectInvalid(Hash),
RejectSpamTransaction(Hash),
RejectStorageMassIncomputable(Hash),
}Expand description
Re-export errors
Variants§
RejectTxRule(TxRuleError)
A consensus transaction rule error
Note that following variants are converted:
- TxRuleError::ImmatureCoinbaseSpend => RuleError::RejectImmatureSpend
- TxRuleError::MissingTxOutpoints => RuleError::RejectMissingOutpoint
RejectMissingOutpoint
RejectAlreadyAccepted(Hash)
RejectDuplicate(Hash)
RejectDoubleSpendInMempool(TransactionOutpoint, Hash)
RejectRbfNoDoubleSpend
RejectRbfTooManyDoubleSpendingTransactions
RejectMempoolIsFull
a transaction is rejected if the mempool is full
RejectNonStandard(Hash, String)
An error emitted by mining\src\mempool\check_transaction_standard.rs
RejectImmatureSpend(TxRuleError)
RejectMissingTransaction(Hash)
RejectBadOrphanMass(u64, u64)
RejectDuplicateOrphan(Hash)
RejectDoubleSpendOrphan(Hash, Hash)
RejectDisallowedOrphan(Hash)
RejectMissingOrphanOutpoint(usize, Hash, TransactionOutpoint)
RejectMissingOrphanTransaction(Hash)
RejectOrphanPoolIsFull(usize, u64)
New behavior: a transaction is rejected if the orphan pool is full
RejectCycleInMempoolTransactions
RejectInvalid(Hash)
RejectSpamTransaction(Hash)
RejectStorageMassIncomputable(Hash)
Trait Implementations§
Source§impl Error for RuleError
impl Error for RuleError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<NonStandardError> for RuleError
impl From<NonStandardError> for RuleError
Source§fn from(item: NonStandardError) -> RuleError
fn from(item: NonStandardError) -> RuleError
Converts to this type from the input type.
Source§impl From<RuleError> for MiningManagerError
impl From<RuleError> for MiningManagerError
Source§fn from(source: RuleError) -> MiningManagerError
fn from(source: RuleError) -> MiningManagerError
Converts to this type from the input type.
Source§impl From<TopologicalIndexError> for RuleError
impl From<TopologicalIndexError> for RuleError
Source§fn from(_: TopologicalIndexError) -> Self
fn from(_: TopologicalIndexError) -> Self
Converts to this type from the input type.
Source§impl From<TxRuleError> for RuleError
impl From<TxRuleError> for RuleError
Source§fn from(item: TxRuleError) -> RuleError
fn from(item: TxRuleError) -> RuleError
Converts to this type from the input type.
impl Eq for RuleError
impl StructuralPartialEq for RuleError
Auto Trait Implementations§
impl Freeze for RuleError
impl RefUnwindSafe for RuleError
impl Send for RuleError
impl Sync for RuleError
impl Unpin for RuleError
impl UnwindSafe for RuleError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
Source§impl<T> CastFrom for Twhere
T: Any + 'static,
impl<T> CastFrom for Twhere
T: Any + 'static,
Source§fn ref_any(&self) -> &(dyn Any + 'static)
fn ref_any(&self) -> &(dyn Any + 'static)
Returns a immutable reference to
Any, which is backed by the type implementing this trait.Source§fn mut_any(&mut self) -> &mut (dyn Any + 'static)
fn mut_any(&mut self) -> &mut (dyn Any + 'static)
Returns a mutable reference to
Any, which is backed by the type implementing this trait.Source§impl<T> CastFromSync for T
impl<T> CastFromSync for T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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