pub enum RuleError {
Show 22 variants
RejectTxRule(TxRuleError),
RejectMissingOutpoint,
RejectAlreadyAccepted(TransactionId),
RejectDuplicate(TransactionId),
RejectDoubleSpendInMempool(TransactionOutpoint, TransactionId),
RejectRbfNoDoubleSpend,
RejectRbfTooManyDoubleSpendingTransactions,
RejectMempoolIsFull,
RejectNonStandard(TransactionId, String),
RejectImmatureSpend(TxRuleError),
RejectMissingTransaction(TransactionId),
RejectBadOrphanMass(u64, u64),
RejectDuplicateOrphan(TransactionId),
RejectDoubleSpendOrphan(TransactionId, TransactionId),
RejectDisallowedOrphan(TransactionId),
RejectMissingOrphanOutpoint(usize, TransactionId, TransactionOutpoint),
RejectMissingOrphanTransaction(TransactionId),
RejectOrphanPoolIsFull(usize, u64),
RejectCycleInMempoolTransactions,
RejectInvalid(TransactionId),
RejectSpamTransaction(TransactionId),
RejectStorageMassIncomputable(TransactionId),
}
Variants§
RejectTxRule(TxRuleError)
A consensus transaction rule error
Note that following variants are converted:
- TxRuleError::ImmatureCoinbaseSpend => RuleError::RejectImmatureSpend
- TxRuleError::MissingTxOutpoints => RuleError::RejectMissingOutpoint
RejectMissingOutpoint
RejectAlreadyAccepted(TransactionId)
RejectDuplicate(TransactionId)
RejectDoubleSpendInMempool(TransactionOutpoint, TransactionId)
RejectRbfNoDoubleSpend
RejectRbfTooManyDoubleSpendingTransactions
RejectMempoolIsFull
a transaction is rejected if the mempool is full
RejectNonStandard(TransactionId, String)
An error emitted by mining\src\mempool\check_transaction_standard.rs
RejectImmatureSpend(TxRuleError)
RejectMissingTransaction(TransactionId)
RejectBadOrphanMass(u64, u64)
RejectDuplicateOrphan(TransactionId)
RejectDoubleSpendOrphan(TransactionId, TransactionId)
RejectDisallowedOrphan(TransactionId)
RejectMissingOrphanOutpoint(usize, TransactionId, TransactionOutpoint)
RejectMissingOrphanTransaction(TransactionId)
RejectOrphanPoolIsFull(usize, u64)
New behavior: a transaction is rejected if the orphan pool is full
RejectCycleInMempoolTransactions
RejectInvalid(TransactionId)
RejectSpamTransaction(TransactionId)
RejectStorageMassIncomputable(TransactionId)
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 · Source§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) -> Self
fn from(item: NonStandardError) -> Self
Converts to this type from the input type.
Source§impl From<RuleError> for MiningManagerError
impl From<RuleError> for MiningManagerError
Source§impl From<TxRuleError> for RuleError
impl From<TxRuleError> for RuleError
Source§fn from(item: TxRuleError) -> Self
fn from(item: TxRuleError) -> Self
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§
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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