pub type TrieError<L> = TrieError<TrieHash<L>, CError<L>>;
Expand description
TrieDB error over TrieConfiguration
trait.
Aliased Type§
enum TrieError<L> {
InvalidStateRoot(<<L as TrieLayout>::Hash as Hasher>::Out),
IncompleteDatabase(<<L as TrieLayout>::Hash as Hasher>::Out),
ValueAtIncompleteKey(Vec<u8>, u8),
DecoderError(<<L as TrieLayout>::Hash as Hasher>::Out, <<L as TrieLayout>::Codec as NodeCodec>::Error),
InvalidHash(<<L as TrieLayout>::Hash as Hasher>::Out, Vec<u8>),
}
Variants§
InvalidStateRoot(<<L as TrieLayout>::Hash as Hasher>::Out)
Attempted to create a trie with a state root not in the DB.
IncompleteDatabase(<<L as TrieLayout>::Hash as Hasher>::Out)
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(<<L as TrieLayout>::Hash as Hasher>::Out, <<L as TrieLayout>::Codec as NodeCodec>::Error)
Corrupt Trie item.
InvalidHash(<<L as TrieLayout>::Hash as Hasher>::Out, Vec<u8>)
Hash is not value.