pub enum AcceptToMempoolError {
MemoryUsageTooHigh,
ConflictingTransaction,
DuplicatedInputs,
Consensus(BlockchainError),
}Expand description
An error returned when we try to add a transaction to the mempool.
Variants§
MemoryUsageTooHigh
Memory usage is too high.
ConflictingTransaction
The transaction is conflicting with another transaction in the mempool.
DuplicatedInputs
This transaction has duplicated inputs
Consensus(BlockchainError)
A validation error happened while consensus checking a transaction
Trait Implementations§
Source§impl Debug for AcceptToMempoolError
impl Debug for AcceptToMempoolError
Source§impl Display for AcceptToMempoolError
impl Display for AcceptToMempoolError
Source§impl Error for AcceptToMempoolError
impl Error for AcceptToMempoolError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for AcceptToMempoolError
impl !RefUnwindSafe for AcceptToMempoolError
impl Send for AcceptToMempoolError
impl Sync for AcceptToMempoolError
impl Unpin for AcceptToMempoolError
impl !UnwindSafe for AcceptToMempoolError
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