Skip to content

Commit

Permalink
trie: fix i/index flaw
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Oct 8, 2024
1 parent c16a018 commit b5c5f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trie/committer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b5c5f3b

Please sign in to comment.