Enum kaspa_mining_errors::mempool::RuleError
source · pub enum RuleError {
Show 20 variants
RejectTxRule(TxRuleError),
RejectMissingOutpoint,
RejectAlreadyAccepted(TransactionId),
RejectDuplicate(TransactionId),
RejectDoubleSpendInMempool(TransactionOutpoint, TransactionId),
RejectMempoolIsFull(usize, u64),
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)
RejectMempoolIsFull(usize, u64)
New behavior: 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)>
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.
Auto Trait Implementations§
impl RefUnwindSafe for RuleError
impl Send for RuleError
impl Sync for RuleError
impl Unpin for RuleError
impl UnwindSafe for RuleError
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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