Skip to content

Commit

Permalink
revert the hashing of nodes in commit (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet authored Jul 25, 2023
1 parent e8712ad commit b2d852d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -1571,17 +1571,6 @@ func (n *InternalNode) BatchSerialize() ([]SerializedNode, error) {
}
}

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

return ret, nil
}

Expand Down

0 comments on commit b2d852d

Please sign in to comment.