Skip to content

Commit b2d852d

Browse files
authored
revert the hashing of nodes in commit (#380)
1 parent e8712ad commit b2d852d

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

tree.go

-11
Original file line numberDiff line numberDiff line change
@@ -1571,17 +1571,6 @@ func (n *InternalNode) BatchSerialize() ([]SerializedNode, error) {
15711571
}
15721572
}
15731573

1574-
// TODO: we transform nodes in the first layer to HashedNodes, to avoid further calls
1575-
// to this method to do double-work. This is a temporary change for geth since in
1576-
// the current influx PBSS effort, there're still calls to Commit() storage tries
1577-
// which in VKT doesn't make sense anymore. This changes makes those calls a ~noop.
1578-
for i := range n.children {
1579-
switch n.children[i].(type) {
1580-
case *InternalNode, *LeafNode:
1581-
n.children[i] = HashedNode{}
1582-
}
1583-
}
1584-
15851574
return ret, nil
15861575
}
15871576

0 commit comments

Comments
 (0)