[][src]Enum state_processing::per_block_processing::errors::TransferInvalid

pub enum TransferInvalid {
    FromValidatorUnknown(u64),
    ToValidatorUnknown(u64),
    FromBalanceInsufficient(u64u64),
    FeeOverflow(u64u64),
    SenderDust(u64u64),
    RecipientDust(u64u64),
    StateSlotMismatch(SlotSlot),
    TransferSlotInPast(SlotSlot),
    FromValidatorIneligibleForTransfer(u64),
    WithdrawalCredentialsMismatch(Hash256Hash256),
    BadSignature,
    ToBalanceOverflow(u64u64),
    ProposerBalanceOverflow(u64u64),
}

Variants

FromValidatorUnknown(u64)

The validator indicated by transfer.from is unknown.

ToValidatorUnknown(u64)

The validator indicated by transfer.to is unknown.

FromBalanceInsufficient(u64u64)

The balance of transfer.from is insufficient.

(required, available)

FeeOverflow(u64u64)

Adding transfer.fee to transfer.amount causes an overflow.

(transfer_fee, transfer_amount)

SenderDust(u64u64)

This transfer would result in the transfer.from account to have 0 < balance < min_deposit_amount

(resulting_amount, min_deposit_amount)

RecipientDust(u64u64)

This transfer would result in the transfer.to account to have 0 < balance < min_deposit_amount

(resulting_amount, min_deposit_amount)

StateSlotMismatch(SlotSlot)

The state slot does not match transfer.slot.

(state_slot, transfer_slot)

TransferSlotInPast(SlotSlot)

The transfer.slot is in the past relative to the state slot.

(state_slot, transfer_slot)

FromValidatorIneligibleForTransfer(u64)

The transfer.from validator has been activated and is not withdrawable.

(from_validator)

WithdrawalCredentialsMismatch(Hash256Hash256)

The validators withdrawal credentials do not match transfer.pubkey.

(state_credentials, transfer_pubkey_credentials)

BadSignature

The deposit was not signed by deposit.pubkey.

ToBalanceOverflow(u64u64)

Overflow when adding to transfer.to balance.

(to_balance, transfer_amount)

ProposerBalanceOverflow(u64u64)

Overflow when adding to beacon proposer balance.

(proposer_balance, transfer_fee)

Trait Implementations

impl PartialEq<TransferInvalid> for TransferInvalid[src]

impl Debug for TransferInvalid[src]

Auto Trait Implementations

impl Send for TransferInvalid

impl Unpin for TransferInvalid

impl Sync for TransferInvalid

impl UnwindSafe for TransferInvalid

impl RefUnwindSafe for TransferInvalid

Blanket Implementations

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

impl<T> From<T> for T[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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

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