neoneo-go/pkg/core/mpt
Evgenii Stratonikov 6ca22027d5 mpt: implement (*Trie).Collapse()
Because trie size is rather big, it can't be stored in memory.
Thus some form of caching should also be implemented. To avoid
marshaling/unmarshaling of items which are close to root and are used
very frequenly we can save them across the persists.
This commit implements pruning items at the specified depth,
replacing them by hash nodes.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2020-07-30 12:42:15 +03:00
..
branch.go mpt: implement JSON marshaling/unmarshaling 2020-07-30 12:42:15 +03:00
doc.go mpt: implement MPT trie 2020-07-30 12:42:15 +03:00
extension.go mpt: implement JSON marshaling/unmarshaling 2020-07-30 12:42:15 +03:00
hash.go mpt: implement JSON marshaling/unmarshaling 2020-07-30 12:42:15 +03:00
helpers.go mpt: implement MPT trie 2020-07-30 12:42:15 +03:00
leaf.go mpt: implement JSON marshaling/unmarshaling 2020-07-30 12:42:15 +03:00
node.go mpt: implement JSON marshaling/unmarshaling 2020-07-30 12:42:15 +03:00
node_test.go mpt: implement JSON marshaling/unmarshaling 2020-07-30 12:42:15 +03:00
proof.go mpt: implement MPT proof Get and Verify 2020-07-30 12:42:15 +03:00
proof_test.go mpt: implement MPT proof Get and Verify 2020-07-30 12:42:15 +03:00
trie.go mpt: implement (*Trie).Collapse() 2020-07-30 12:42:15 +03:00
trie_test.go mpt: implement (*Trie).Collapse() 2020-07-30 12:42:15 +03:00