Enum common_types::transaction::Error[][src]

pub enum Error {
    AlreadyImported,
    Old,
    LimitReached,
    InsufficientGasPrice {
        minimal: U256,
        got: U256,
    },
    TooCheapToReplace {
        prev: Option<U256>,
        new: Option<U256>,
    },
    InsufficientGas {
        minimal: U256,
        got: U256,
    },
    InsufficientBalance {
        balance: U256,
        cost: U256,
    },
    GasLimitExceeded {
        limit: U256,
        got: U256,
    },
    InvalidGasLimit(OutOfBounds<U256>),
    SenderBanned,
    RecipientBanned,
    CodeBanned,
    InvalidChainId,
    NotAllowed,
    InvalidSignature(String),
    TooBig,
    InvalidRlp(String),
}

Errors concerning transaction processing.

Variants

AlreadyImported

Transaction is already imported to the queue

Old

Transaction is not valid anymore (state already has higher nonce)

LimitReached

Transaction was not imported to the queue because limit has been reached.

InsufficientGasPrice

Transaction’s gas price is below threshold.

Fields of InsufficientGasPrice

minimal: U256

Minimal expected gas price

got: U256

Transaction gas price

TooCheapToReplace

Transaction has too low fee (there is already a transaction with the same sender-nonce but higher gas price)

Fields of TooCheapToReplace

prev: Option<U256>

previous transaction’s gas price

new: Option<U256>

new transaction’s gas price

InsufficientGas

Transaction’s gas is below currently set minimal gas requirement.

Fields of InsufficientGas

minimal: U256

Minimal expected gas

got: U256

Transaction gas

InsufficientBalance

Sender doesn’t have enough funds to pay for this transaction

Fields of InsufficientBalance

balance: U256

Senders balance

cost: U256

Transaction cost

GasLimitExceeded

Transactions gas is higher then current gas limit

Fields of GasLimitExceeded

limit: U256

Current gas limit

got: U256

Declared transaction gas

InvalidGasLimit(OutOfBounds<U256>)

Transaction’s gas limit (aka gas) is invalid.

SenderBanned

Transaction sender is banned.

RecipientBanned

Transaction receipient is banned.

CodeBanned

Contract creation code is banned.

InvalidChainId

Invalid chain ID given.

NotAllowed

Not enough permissions given by permission contract.

InvalidSignature(String)

Signature error

TooBig

Transaction too big

InvalidRlp(String)

Invalid RLP encoding

Trait Implementations

impl Clone for Error[src]

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<DecoderError> for Error[src]

impl From<Error> for VapcoreError[src]

impl From<Error> for Error[src]

impl PartialEq<Error> for Error[src]

impl StructuralPartialEq for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,