2019-02-05 12:01:10 +00:00
|
|
|
import
|
2024-09-29 08:52:19 +00:00
|
|
|
../common/hashes_rlp
|
2019-02-05 12:01:10 +00:00
|
|
|
|
2024-09-29 08:52:19 +00:00
|
|
|
export hashes_rlp
|
2019-02-05 12:01:10 +00:00
|
|
|
|
2022-09-02 14:57:52 +00:00
|
|
|
type
|
2020-02-05 12:29:54 +00:00
|
|
|
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.
|
|
|
|
|
2019-02-05 12:01:10 +00:00
|
|
|
const
|
|
|
|
emptyRlp* = @[128.byte]
|
2024-09-29 08:52:19 +00:00
|
|
|
emptyRlpHash* = hash32"56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"
|