mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
fix: return serialized root in state root, not its mapping to a scalar field (#289)
This commit is contained in:
parent
189a4770dd
commit
faee2f9587
1 changed files with 1 additions and 3 deletions
|
|
@ -286,9 +286,7 @@ func (trie *VerkleTrie) Commit(_ bool) (common.Hash, *trienode.NodeSet, error) {
|
|||
}
|
||||
batch.Write()
|
||||
|
||||
// Serialize root commitment form
|
||||
rootH := root.Hash().BytesLE()
|
||||
return common.BytesToHash(rootH[:]), nil, nil
|
||||
return trie.Hash(), nil, nil
|
||||
}
|
||||
|
||||
// NodeIterator returns an iterator that returns nodes of the trie. Iteration
|
||||
|
|
|
|||
Loading…
Reference in a new issue