forked from TrueCloudLab/neoneo-go
8e7c76827b
(*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. |
||
---|---|---|
.. | ||
base.go | ||
batch.go | ||
batch_test.go | ||
bench_test.go | ||
billet.go | ||
billet_test.go | ||
branch.go | ||
compat_test.go | ||
doc.go | ||
empty.go | ||
extension.go | ||
hash.go | ||
helpers.go | ||
helpers_test.go | ||
leaf.go | ||
node.go | ||
node_test.go | ||
proof.go | ||
proof_test.go | ||
trie.go | ||
trie_test.go |