neoneo-go/pkg/core/mpt
Evgenii Stratonikov 103c45850a 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.
2020-06-01 18:15:13 +03:00
..
branch.go mpt: implement JSON marshaling/unmarshaling 2020-06-01 18:15:13 +03:00
doc.go mpt: implement MPT trie 2020-06-01 18:14:19 +03:00
extension.go mpt: implement JSON marshaling/unmarshaling 2020-06-01 18:15:13 +03:00
hash.go mpt: implement JSON marshaling/unmarshaling 2020-06-01 18:15:13 +03:00
helpers.go mpt: implement MPT trie 2020-06-01 18:14:19 +03:00
leaf.go mpt: implement JSON marshaling/unmarshaling 2020-06-01 18:15:13 +03:00
node.go mpt: implement JSON marshaling/unmarshaling 2020-06-01 18:15:13 +03:00
node_test.go mpt: implement JSON marshaling/unmarshaling 2020-06-01 18:15:13 +03:00
proof.go mpt: implement MPT proof Get and Verify 2020-06-01 18:14:19 +03:00
proof_test.go mpt: implement MPT proof Get and Verify 2020-06-01 18:14:19 +03:00
trie.go mpt: implement (*Trie).Collapse() 2020-06-01 18:15:13 +03:00
trie_test.go mpt: implement (*Trie).Collapse() 2020-06-01 18:15:13 +03:00