From 3880e9e6b4c3490501972b76adb7c8de7e68b47d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Wed, 12 Jun 2024 12:21:30 +0300 Subject: [PATCH] trie: verkle comment nitpicks --- trie/verkle.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trie/verkle.go b/trie/verkle.go index aefffce33c..1ea23186f9 100644 --- a/trie/verkle.go +++ b/trie/verkle.go @@ -221,13 +221,13 @@ func (t *VerkleTrie) Commit(_ bool) (common.Hash, *trienode.NodeSet) { root := t.root.(*verkle.InternalNode) nodes, err := root.BatchSerialize() if err != nil { - // error return from this function indicates error in the code logic + // Error return from this function indicates error in the code logic // of BatchSerialize, and we fail catastrophically if this is the case. panic(fmt.Errorf("BatchSerialize failed: %v", err)) } nodeset := trienode.NewNodeSet(common.Hash{}) for _, node := range nodes { - // hash parameter is not used in pathdb + // Hash parameter is not used in pathdb nodeset.AddNode(node.Path, trienode.New(common.Hash{}, node.SerializedBytes)) } // Serialize root commitment form