referrerpolicy=no-referrer-when-downgrade

Type Alias sp_trie::trie_types::TrieError

source ·
pub type TrieError<H> = TrieError<H, Error<H>>;
Expand description

As in trie_db, but less generic, error type for the crate.

Aliased Type§

enum TrieError<H> {
    InvalidStateRoot(H),
    IncompleteDatabase(H),
    ValueAtIncompleteKey(Vec<u8>, u8),
    DecoderError(H, Error<H>),
    InvalidHash(H, Vec<u8>),
}

Variants§

§

InvalidStateRoot(H)

Attempted to create a trie with a state root not in the DB.

§

IncompleteDatabase(H)

Trie item not found in the database,

§

ValueAtIncompleteKey(Vec<u8>, u8)

A value was found in the trie with a nibble key that was not byte-aligned. The first parameter is the byte-aligned part of the prefix and the second parameter is the remaining nibble.

§

DecoderError(H, Error<H>)

Corrupt Trie item.

§

InvalidHash(H, Vec<u8>)

Hash is not value.