neoneo-go/pkg/core/mpt
Anna Shaleva 8e7c76827b core: optimise (*Billet).Traverse and (*Trie).Find
(*Billet).Traverse changes:
1. Get rid of the `offset` argument. We can cut `from` and pass just the
part that remains. This implies that node with path matching `from` will
also be included in the result, so additional check needs to be added to
the callback function.
2. Pass `path` and `from` without search prefix. Append prefix to the
result inside the callback.
3. Remove duplicating code.

(*Trie).Find changes:
1. Properly prepare `from` argument for traversing function. It closly
depends on the `path` argument.
2021-10-13 13:52:33 +03:00
..
base.go mpt: use BinWriter.Grow() instead of custom buffer 2021-08-10 09:34:05 +03:00
batch.go core: allow empty MPT Leaf values 2021-09-03 13:46:48 +03:00
batch_test.go core: allow empty MPT Leaf values 2021-09-03 13:46:48 +03:00
bench_test.go mpt: use BinWriter.Grow() instead of custom buffer 2021-08-10 09:34:05 +03:00
billet.go core: optimise (*Billet).Traverse and (*Trie).Find 2021-10-13 13:52:33 +03:00
billet_test.go core: collapse completed parts of Billet 2021-09-07 19:43:27 +03:00
branch.go core: clone MPT node while restoring it multiple times 2021-09-07 19:43:27 +03:00
compat_test.go rpc: implement findstates RPC handler 2021-10-13 11:41:05 +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 Size method to trie nodes 2021-08-06 12:01:16 +03:00
proof.go rpc: implement findstates RPC handler 2021-10-13 11:41:05 +03:00
proof_test.go core: implement statesync module 2021-09-07 19:43:27 +03:00
trie.go core: optimise (*Billet).Traverse and (*Trie).Find 2021-10-13 13:52:33 +03:00
trie_test.go rpc: implement findstates RPC handler 2021-10-13 11:41:05 +03:00