Enum near_chain::ErrorKind[][src]

pub enum ErrorKind {
Show 50 variants Unfit(String), Orphan, ChunkMissing(ChunkHash), ChunksMissing(Vec<ShardChunkHeader, Global>), InvalidBlockPastTime(DateTime<Utc>, DateTime<Utc>), InvalidBlockFutureTime(DateTime<Utc>), InvalidBlockHeight(u64), InvalidBlockProposer, InvalidStateRoot, InvalidTxRoot, InvalidChunkReceiptsRoot, InvalidChunkHeadersRoot, InvalidChunkTxRoot, InvalidReceiptsProof, InvalidOutcomesProof, InvalidStatePayload, InvalidTransactions, InvalidChallengeRoot, InvalidChallenge, MaliciousChallenge, IncorrectNumberOfChunkHeaders, InvalidChunk, InvalidChunkProofs(Box<ChunkProofs, Global>), InvalidChunkState(Box<ChunkState, Global>), InvalidChunkMask, InvalidChunkHeight, InvalidEpochHash, InvalidNextBPHash, NotEnoughApprovals, InvalidFinalityInfo, InvalidValidatorProposals, InvalidSignature, InvalidApprovals, InvalidGasLimit, InvalidGasPrice, InvalidGasUsed, InvalidBalanceBurnt, InvalidShardId(u64), InvalidStateRequest(String), InvalidRandomnessBeaconOutput, InvalidBlockMerkleRoot, NotAValidator, ValidatorError(String), EpochOutOfBounds(EpochId), ChallengedBlockOnChain, IOErr(String), DBNotFoundErr(String), StorageError(StorageError), GCError(String), Other(String),
}

Variants

Unfit(String)

The block doesn’t fit anywhere in our chain.

Tuple Fields of Unfit

0: String
Orphan

Orphan block.

ChunkMissing(ChunkHash)

Chunk is missing.

Tuple Fields of ChunkMissing

0: ChunkHash
ChunksMissing(Vec<ShardChunkHeader, Global>)

Chunks missing with header info.

Tuple Fields of ChunksMissing

0: Vec<ShardChunkHeader, Global>
InvalidBlockPastTime(DateTime<Utc>, DateTime<Utc>)

Block time is before parent block time.

Tuple Fields of InvalidBlockPastTime

0: DateTime<Utc>1: DateTime<Utc>
InvalidBlockFutureTime(DateTime<Utc>)

Block time is from too much in the future.

Tuple Fields of InvalidBlockFutureTime

0: DateTime<Utc>
InvalidBlockHeight(u64)

Block height is invalid (not previous + 1).

Tuple Fields of InvalidBlockHeight

0: u64
InvalidBlockProposer

Invalid block proposed signature.

InvalidStateRoot

Invalid state root hash.

InvalidTxRoot

Invalid block tx root hash.

InvalidChunkReceiptsRoot

Invalid chunk receipts root hash.

InvalidChunkHeadersRoot

Invalid chunk headers root hash.

InvalidChunkTxRoot

Invalid chunk tx root hash.

InvalidReceiptsProof

Invalid receipts proof.

InvalidOutcomesProof

Invalid outcomes proof.

InvalidStatePayload

Invalid state payload on state sync.

InvalidTransactions

Invalid transactions in the block.

InvalidChallengeRoot

Invalid Challenge Root (doesn’t match actual challenge)

InvalidChallenge

Invalid challenge (wrong signature or format).

MaliciousChallenge

Incorrect (malicious) challenge (slash the sender).

IncorrectNumberOfChunkHeaders

Incorrect number of chunk headers

InvalidChunk

Invalid chunk.

InvalidChunkProofs(Box<ChunkProofs, Global>)

One of the chunks has invalid proofs

Tuple Fields of InvalidChunkProofs

0: Box<ChunkProofs, Global>
InvalidChunkState(Box<ChunkState, Global>)

Invalid chunk state.

Tuple Fields of InvalidChunkState

0: Box<ChunkState, Global>
InvalidChunkMask

Invalid chunk mask

InvalidChunkHeight

The chunk height is outside of the horizon

InvalidEpochHash

Invalid epoch hash

InvalidNextBPHash

next_bps_hash doens’t correspond to the actual next block producers set

NotEnoughApprovals

The block doesn’t have approvals from 50% of the block producers

InvalidFinalityInfo

The information about the last final block is incorrect

InvalidValidatorProposals

Invalid validator proposals in the block.

InvalidSignature

Invalid Signature

InvalidApprovals

Invalid Approvals

InvalidGasLimit

Invalid Gas Limit

InvalidGasPrice

Invalid Gas Limit

InvalidGasUsed

Invalid Gas Used

InvalidBalanceBurnt

Invalid Balance Burnt

InvalidShardId(u64)

Invalid shard id

Tuple Fields of InvalidShardId

0: u64
InvalidStateRequest(String)

Invalid shard id

Tuple Fields of InvalidStateRequest

0: String
InvalidRandomnessBeaconOutput

Invalid VRF proof, or incorrect random_output in the header

InvalidBlockMerkleRoot

Invalid block merkle root.

NotAValidator

Someone is not a validator. Usually happens in signature verification

ValidatorError(String)

Validator error.

Tuple Fields of ValidatorError

0: String
EpochOutOfBounds(EpochId)

Epoch out of bounds. Usually if received block is too far in the future or alternative fork.

Tuple Fields of EpochOutOfBounds

0: EpochId
ChallengedBlockOnChain

A challenged block is on the chain that was attempted to become the head

IOErr(String)

IO Error.

Tuple Fields of IOErr

0: String
DBNotFoundErr(String)

Not found record in the DB.

Tuple Fields of DBNotFoundErr

0: String
StorageError(StorageError)

Storage error. Used for internal passing the error.

Tuple Fields of StorageError

0: StorageError
GCError(String)

GC error.

Tuple Fields of GCError

0: String
Other(String)

Anything else

Tuple Fields of Other

0: String

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

Formats the value using the given formatter. Read more

Returns the “name” of the error. Read more

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

Provides context for this failure. Read more

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Converts a reference to Self into a dynamic trait object of Fail.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. 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.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

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

Converts the given value to a String. 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