good morning!!!!

Skip to content
Snippets Groups Projects
Commit 53634f1e authored by Péter Szilágyi's avatar Péter Szilágyi Committed by Felix Lange
Browse files

trie: remove unused originalRoot field (#17862)

parent 31c4e3a1
Branches
Tags
No related merge requests found
...@@ -67,7 +67,6 @@ type LeafCallback func(leaf []byte, parent common.Hash) error ...@@ -67,7 +67,6 @@ type LeafCallback func(leaf []byte, parent common.Hash) error
type Trie struct { type Trie struct {
db *Database db *Database
root node root node
originalRoot common.Hash
// Cache generation values. // Cache generation values.
// cachegen increases by one with each commit operation. // cachegen increases by one with each commit operation.
...@@ -99,7 +98,6 @@ func New(root common.Hash, db *Database) (*Trie, error) { ...@@ -99,7 +98,6 @@ func New(root common.Hash, db *Database) (*Trie, error) {
} }
trie := &Trie{ trie := &Trie{
db: db, db: db,
originalRoot: root,
} }
if root != (common.Hash{}) && root != emptyRoot { if root != (common.Hash{}) && root != emptyRoot {
rootnode, err := trie.resolveHash(root[:], nil) rootnode, err := trie.resolveHash(root[:], nil)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment