Enum kaspa_mining::mempool::errors::RuleError
source · pub enum RuleError {
Show 20 variants
RejectTxRule(TxRuleError),
RejectMissingOutpoint,
RejectAlreadyAccepted(Hash),
RejectDuplicate(Hash),
RejectDoubleSpendInMempool(TransactionOutpoint, Hash),
RejectMempoolIsFull(usize, u64),
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)
RejectMempoolIsFull(usize, u64)
New behavior: 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)>
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) -> 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.
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
§impl<T> CastFrom for Twhere
T: Any + 'static,
impl<T> CastFrom for Twhere
T: Any + 'static,
§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.§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.