core,trie: fix typo in TransitionTrie (#32491)

Change `NewTransitionTree` to the correct `NewTransitionTrie`.

Signed-off-by: pxwanglu <pxwanglu@icloud.com>
This commit is contained in:
pxwanglu 2025-08-25 15:29:58 +08:00 committed by GitHub
parent f62eec955d
commit d0602ba45a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -253,7 +253,7 @@ func newTrieReader(root common.Hash, db *triedb.Database, cache *utils.PointCach
if err != nil {
return nil, err
}
tr = trie.NewTransitionTree(mpt, tr.(*trie.VerkleTrie), false)
tr = trie.NewTransitionTrie(mpt, tr.(*trie.VerkleTrie), false)
}
}
if err != nil {

View file

@ -37,7 +37,7 @@ type TransitionTrie struct {
}
// NewTransitionTrie creates a new TransitionTrie.
func NewTransitionTree(base *SecureTrie, overlay *VerkleTrie, st bool) *TransitionTrie {
func NewTransitionTrie(base *SecureTrie, overlay *VerkleTrie, st bool) *TransitionTrie {
return &TransitionTrie{
overlay: overlay,
base: base,