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 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>
Block time is before parent block time.
Block time is from too much in the future.
InvalidBlockHeight(u64)
Block height is invalid (not previous + 1).
Tuple Fields of InvalidBlockHeight
0: u64
Invalid block proposed signature.
Invalid state root hash.
Invalid block tx root hash.
Invalid chunk receipts root hash.
Invalid chunk headers root hash.
Invalid chunk tx root hash.
Invalid receipts proof.
Invalid outcomes proof.
Invalid state payload on state sync.
Invalid transactions in the block.
Invalid Challenge Root (doesn’t match actual challenge)
Invalid challenge (wrong signature or format).
Incorrect (malicious) challenge (slash the sender).
Incorrect number of chunk headers
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>
Invalid chunk mask
The chunk height is outside of the horizon
Invalid epoch hash
next_bps_hash
doens’t correspond to the actual next block producers set
The block doesn’t have approvals from 50% of the block producers
The information about the last final block is incorrect
Invalid validator proposals in the block.
Invalid Signature
Invalid Approvals
Invalid Gas Limit
Invalid Gas Limit
Invalid Gas Used
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
Invalid VRF proof, or incorrect random_output in the header
Invalid block merkle root.
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
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
Auto Trait Implementations
impl RefUnwindSafe for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
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