pub enum TxRuleError {
Show 30 variants
NoTxInputs,
TxDuplicateInputs,
TxHasGas,
NonCoinbaseTxHasPayload,
UnknownTxVersion(u16),
TooManyInputs(usize, usize),
TooManyOutputs(usize, usize),
TooBigSignatureScript(usize, usize),
TooBigScriptPublicKey(usize, usize),
NotFinalized(usize),
CoinbaseHasInputs(usize),
CoinbaseTooManyOutputs(usize, u64),
CoinbaseScriptPublicKeyTooLong(usize),
ImmatureCoinbaseSpend(usize, TransactionOutpoint, u64, u64, u64),
InputAmountOverflow,
InputAmountTooHigh,
TxOutZero(usize),
TxOutTooHigh(usize),
OutputsValueOverflow,
TotalTxOutTooHigh,
SpendTooHigh(u64, u64),
SequenceLockConditionsAreNotMet,
MissingTxOutpoints,
SignatureInvalid(TxScriptError),
SignatureEmpty(TxScriptError),
WrongSigOpCount(usize, u64, u64),
MassIncomputable,
WrongMass(u64, u64),
SubnetworksDisabled(SubnetworkId),
FeerateTooLow,
}Variants§
NoTxInputs
TxDuplicateInputs
TxHasGas
NonCoinbaseTxHasPayload
UnknownTxVersion(u16)
TooManyInputs(usize, usize)
TooManyOutputs(usize, usize)
TooBigSignatureScript(usize, usize)
TooBigScriptPublicKey(usize, usize)
NotFinalized(usize)
CoinbaseHasInputs(usize)
CoinbaseTooManyOutputs(usize, u64)
CoinbaseScriptPublicKeyTooLong(usize)
ImmatureCoinbaseSpend(usize, TransactionOutpoint, u64, u64, u64)
InputAmountOverflow
InputAmountTooHigh
TxOutZero(usize)
TxOutTooHigh(usize)
OutputsValueOverflow
TotalTxOutTooHigh
SpendTooHigh(u64, u64)
SequenceLockConditionsAreNotMet
MissingTxOutpoints
SignatureInvalid(TxScriptError)
SignatureEmpty(TxScriptError)
WrongSigOpCount(usize, u64, u64)
MassIncomputable
WrongMass(u64, u64)
SubnetworksDisabled(SubnetworkId)
FeerateTooLow
TxRuleError::FeerateTooLow is not a consensus error but a mempool error triggered by the
fee/mass RBF validation rule
Trait Implementations§
Source§impl Clone for TxRuleError
impl Clone for TxRuleError
Source§fn clone(&self) -> TxRuleError
fn clone(&self) -> TxRuleError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TxRuleError
impl Debug for TxRuleError
Source§impl Display for TxRuleError
impl Display for TxRuleError
Source§impl Error for TxRuleError
impl Error for TxRuleError
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for TxRuleError
impl PartialEq for TxRuleError
impl Eq for TxRuleError
impl StructuralPartialEq for TxRuleError
Auto Trait Implementations§
impl Freeze for TxRuleError
impl RefUnwindSafe for TxRuleError
impl Send for TxRuleError
impl Sync for TxRuleError
impl Unpin for TxRuleError
impl UnwindSafe for TxRuleError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more