pub enum Reject {
LowFeeRate(FeeRate, u64, u64),
ExceededMaximumAncestorsCount,
Full(String, u64),
Duplicated(Byte32),
Malformed(String),
DeclaredWrongCycles(Cycle, Cycle),
Resolve(OutPointError),
Verification(Error),
Expiry(u64),
}
Expand description
TX reject message
Variants
LowFeeRate(FeeRate, u64, u64)
Transaction fee lower than config
ExceededMaximumAncestorsCount
Transaction exceeded maximum ancestors count limit
Full(String, u64)
Transaction pool exceeded maximum size or cycles limit,
Duplicated(Byte32)
Transaction already exist in transaction_pool
Malformed(String)
Malformed transaction
DeclaredWrongCycles(Cycle, Cycle)
Declared wrong cycles
Resolve(OutPointError)
Resolve failed
Verification(Error)
Verification failed
Expiry(u64)
Expired
Implementations
sourceimpl Reject
impl Reject
sourcepub fn is_malformed_tx(&self) -> bool
pub fn is_malformed_tx(&self) -> bool
Returns true if the reject reason is malformed tx.
Trait Implementations
sourceimpl Error for Reject
impl Error for Reject
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for Reject
impl Send for Reject
impl Sync for Reject
impl Unpin for Reject
impl !UnwindSafe for Reject
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more