Skip to content

Commit fc5410b

Browse files
authored
fix: return serialized root in state root, not its mapping to a scalar field (ethereum#289)
1 parent 2b8427c commit fc5410b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

trie/verkle.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,7 @@ func (trie *VerkleTrie) Commit(_ bool) (common.Hash, *trienode.NodeSet, error) {
286286
}
287287
batch.Write()
288288

289-
// Serialize root commitment form
290-
rootH := root.Hash().BytesLE()
291-
return common.BytesToHash(rootH[:]), nil, nil
289+
return trie.Hash(), nil, nil
292290
}
293291

294292
// NodeIterator returns an iterator that returns nodes of the trie. Iteration

0 commit comments

Comments
 (0)