neoneo-go/pkg/core/mpt
Roman Khimov c4ee310e85 mpt: modify refcounted storage scheme to make GC possible
Add "active" flag into the node data and make the remainder modal, for active
nodes it's a reference counter, for inactive ones the deactivation height is
stored.

Technically, refcounted chains storing just one trie don't need a flag, but
it's a bit simpler this way.
2022-02-10 21:56:20 +03:00
..
base.go mpt: use BinWriter.Grow() instead of custom buffer 2021-08-10 09:34:05 +03:00
batch.go core: handle empty MPT batch properly 2021-10-27 18:44:39 +03:00
batch_test.go mpt: modify refcounted storage scheme to make GC possible 2022-02-10 21:56:20 +03:00
bench_test.go mpt: use BinWriter.Grow() instead of custom buffer 2021-08-10 09:34:05 +03:00
billet.go mpt: modify refcounted storage scheme to make GC possible 2022-02-10 21:56:20 +03:00
billet_test.go mpt: add the notion of MPT mode 2022-02-10 19:15:18 +03:00
branch.go core: clone MPT node while restoring it multiple times 2021-09-07 19:43:27 +03:00
compat_test.go mpt: modify refcounted storage scheme to make GC possible 2022-02-10 21:56:20 +03:00
doc.go mpt: implement MPT trie 2020-07-30 12:42:15 +03:00
empty.go core: clone MPT node while restoring it multiple times 2021-09-07 19:43:27 +03:00
extension.go core: clone MPT node while restoring it multiple times 2021-09-07 19:43:27 +03:00
hash.go core: clone MPT node while restoring it multiple times 2021-09-07 19:43:27 +03:00
helpers.go core: implement statesync module 2021-09-07 19:43:27 +03:00
helpers_test.go core: implement statesync module 2021-09-07 19:43:27 +03:00
leaf.go core: clone MPT node while restoring it multiple times 2021-09-07 19:43:27 +03:00
node.go core: clone MPT node while restoring it multiple times 2021-09-07 19:43:27 +03:00
node_test.go mpt: add the notion of MPT mode 2022-02-10 19:15:18 +03:00
proof.go mpt: add the notion of MPT mode 2022-02-10 19:15:18 +03:00
proof_test.go mpt: add the notion of MPT mode 2022-02-10 19:15:18 +03:00
trie.go mpt: modify refcounted storage scheme to make GC possible 2022-02-10 21:56:20 +03:00
trie_test.go mpt: modify refcounted storage scheme to make GC possible 2022-02-10 21:56:20 +03:00