trie: remove unused originalRoot field (#17862)

This commit is contained in:
Péter Szilágyi 2018-10-08 14:16:16 +03:00 committed by Felix Lange
parent 31c4e3a118
commit 53634f1e04

View File

@ -67,7 +67,6 @@ type LeafCallback func(leaf []byte, parent common.Hash) error
type Trie struct {
db *Database
root node
originalRoot common.Hash
// Cache generation values.
// cachegen increases by one with each commit operation.
@ -99,7 +98,6 @@ func New(root common.Hash, db *Database) (*Trie, error) {
}
trie := &Trie{
db: db,
originalRoot: root,
}
if root != (common.Hash{}) && root != emptyRoot {
rootnode, err := trie.resolveHash(root[:], nil)