Enum casper_execution_engine::core::engine_state::genesis::GenesisError[][src]

pub enum GenesisError {
Show 15 variants UnableToCreateRuntime, InvalidMintKey, MissingMintContract, UnexpectedStoredValue, ExecutionError(Error), MintError(Error), CLValue(String), OrphanedDelegator { validator_public_key: PublicKey, delegator_public_key: PublicKey, }, DuplicatedDelegatorEntry { validator_public_key: PublicKey, delegator_public_key: PublicKey, }, InvalidDelegationRate { public_key: PublicKey, delegation_rate: DelegationRate, }, InvalidBondAmount { public_key: PublicKey, }, InvalidDelegatedAmount { public_key: PublicKey, }, FailedToCreateSystemRegistry, MissingSystemContractHash(String), InvalidValidatorSlots { validators: usize, validator_slots: u32, },
}
Expand description

Error returned as a result of a failed genesis process.

Variants

UnableToCreateRuntime

Error creating a runtime.

InvalidMintKey

Error obtaining the mint’s contract key.

MissingMintContract

Missing mint contract.

UnexpectedStoredValue

Unexpected stored value variant.

ExecutionError(Error)

Error executing a system contract.

Tuple Fields of ExecutionError

0: Error
MintError(Error)

Error executing the mint system contract.

Tuple Fields of MintError

0: Error
CLValue(String)

Error converting a CLValue to a concrete type.

Tuple Fields of CLValue

0: String
OrphanedDelegator

Specified validator does not exist among the genesis accounts.

Fields of OrphanedDelegator

validator_public_key: PublicKey

Validator’s public key.

delegator_public_key: PublicKey

Delegator’s public key.

DuplicatedDelegatorEntry

Duplicated delegator entry found for a given validator.

Fields of DuplicatedDelegatorEntry

validator_public_key: PublicKey

Validator’s public key.

delegator_public_key: PublicKey

Delegator’s public key.

InvalidDelegationRate

Delegation rate outside the allowed range.

Fields of InvalidDelegationRate

public_key: PublicKey

Delegator’s public key.

delegation_rate: DelegationRate

Invalid delegation rate specified in the genesis account entry.

InvalidBondAmount

Invalid bond amount in a genesis account.

Fields of InvalidBondAmount

public_key: PublicKey

Validator’s public key.

InvalidDelegatedAmount

Invalid delegated amount in a genesis account.

Fields of InvalidDelegatedAmount

public_key: PublicKey

Delegator’s public key.

FailedToCreateSystemRegistry

Failed to create system registry.

MissingSystemContractHash(String)

Missing system contract hash.

Tuple Fields of MissingSystemContractHash

0: String
InvalidValidatorSlots

Invalid number of validator slots configured.

Fields of InvalidValidatorSlots

validators: usize

Number of validators in the genesis config.

validator_slots: u32

Number of validator slots specified.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts self into a target type. Read more

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

Should always be Self

Provides immutable access for inspection. Read more

Calls tap in debug builds, and does nothing in release builds.

Provides mutable access for modification. Read more

Calls tap_mut in debug builds, and does nothing in release builds.

Provides immutable access to the reference for inspection.

Calls tap_ref in debug builds, and does nothing in release builds.

Provides mutable access to the reference for modification.

Calls tap_ref_mut in debug builds, and does nothing in release builds.

Provides immutable access to the borrow for inspection. Read more

Calls tap_borrow in debug builds, and does nothing in release builds.

Provides mutable access to the borrow for modification.

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

Immutably dereferences self for inspection.

Calls tap_deref in debug builds, and does nothing in release builds.

Mutably dereferences self for modification.

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Attempts to convert self into a target type. 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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more