From b5c5f3bb13cabc70bc45bdbc86227a673ba1a353 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Tue, 8 Oct 2024 09:19:40 +0200 Subject: [PATCH] trie: fix i/index flaw --- trie/committer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trie/committer.go b/trie/committer.go index f19140a7cb..32172524d9 100644 --- a/trie/committer.go +++ b/trie/committer.go @@ -120,7 +120,7 @@ func (c *committer) commitChildren(path []byte, n *fullNode, parallel bool) [17] } else { wg.Add(1) go func(index int) { - p := append(path, byte(i)) + p := append(path, byte(index)) childSet := trienode.NewNodeSet(c.nodes.Owner) childComitter := newCommitter(childSet, c.tracer, c.collectLeaf, false) h := childComitter.commit(p, child, false)