mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-12 02:56:37 +00:00
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:
parent
f62eec955d
commit
d0602ba45a
2 changed files with 2 additions and 2 deletions
|
|
@ -253,7 +253,7 @@ func newTrieReader(root common.Hash, db *triedb.Database, cache *utils.PointCach
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
tr = trie.NewTransitionTree(mpt, tr.(*trie.VerkleTrie), false)
|
tr = trie.NewTransitionTrie(mpt, tr.(*trie.VerkleTrie), false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ type TransitionTrie struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTransitionTrie creates a new TransitionTrie.
|
// 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{
|
return &TransitionTrie{
|
||||||
overlay: overlay,
|
overlay: overlay,
|
||||||
base: base,
|
base: base,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue