pub enum PoolError {
Show 15 variants
InvalidTx(Error),
InvalidBlock(Error),
Keychain(Error),
Committed(Error),
ImmatureTransaction,
ImmatureCoinbase,
DandelionError,
OverCapacity,
LowFeeTransaction(u64),
DuplicateCommitment,
DuplicateTx,
NRDKernelPreHF3,
NRDKernelNotEnabled,
NRDKernelRelativeHeight,
Other(String),
}
Expand description
Possible errors when interacting with the transaction pool.
An invalid pool entry caused by underlying tx validation error
An invalid pool entry caused by underlying block validation error
Underlying keychain error.
Underlying “committed” error.
Attempt to add a transaction to the pool with lock_height
greater than height of current block
Attempt to spend a coinbase output before it has sufficiently matured.
Problem propagating a stem tx to the next Dandelion relay node.
Transaction pool is over capacity, can’t accept more transactions
Transaction fee is too low given its weight
Attempt to add a duplicate output to the pool.
Attempt to add a duplicate tx to the pool.
NRD kernels will not be accepted by the txpool/stempool pre-HF3.
NRD kernels are not valid if disabled locally via “feature flag”.
NRD kernels are not valid if relative_height rule not met.
Other kinds of error (not yet pulled out into meaningful errors).
Formats the value using the given formatter.
Read more
Formats the value using the given formatter.
Read more
The lower-level source of this error, if any.
Read more
👎Deprecated since 1.42.0: use the Display impl or to_string()
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬This is a nightly-only experimental API. (error_generic_member_access
)
Provides type based access to context intended for error reports.
Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self
and other
values to be equal, and is used
by ==
.
This method tests for !=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
Converts the given value to a
String
.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.