mirror of https://github.com/status-im/nim-eth.git
22 lines
638 B
Nim
22 lines
638 B
Nim
import
|
|
../common/hashes_rlp
|
|
|
|
export hashes_rlp
|
|
|
|
type
|
|
TrieError* = object of CatchableError
|
|
# A common base type of all Trie errors.
|
|
|
|
PersistenceFailure* = object of TrieError
|
|
# The backing database of the trie was not able to carry out
|
|
# the storage or retrieval request.
|
|
|
|
CorruptedTrieDatabase* = object of Defect
|
|
# We consider this a Defect, because the software cannot safely
|
|
# operate if its database has been tampered with. A swift crash
|
|
# will be a more appropriate response.
|
|
|
|
const
|
|
emptyRlp* = @[128.byte]
|
|
emptyRlpHash* = hash32"56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"
|