aboutsummaryrefslogtreecommitdiffstats
path: root/trie/trie.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-10-08 19:16:16 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-10-08 19:16:16 +0800
commit53634f1e04a7ff020fbdeb71f48dbcf33d530125 (patch)
tree9cb857223b3af6b2cbc696a5b939ec27dcb6197f /trie/trie.go
parent31c4e3a118b0bc43e3340e565d75160afadd2438 (diff)
downloadgo-tangerine-53634f1e04a7ff020fbdeb71f48dbcf33d530125.tar
go-tangerine-53634f1e04a7ff020fbdeb71f48dbcf33d530125.tar.gz
go-tangerine-53634f1e04a7ff020fbdeb71f48dbcf33d530125.tar.bz2
go-tangerine-53634f1e04a7ff020fbdeb71f48dbcf33d530125.tar.lz
go-tangerine-53634f1e04a7ff020fbdeb71f48dbcf33d530125.tar.xz
go-tangerine-53634f1e04a7ff020fbdeb71f48dbcf33d530125.tar.zst
go-tangerine-53634f1e04a7ff020fbdeb71f48dbcf33d530125.zip
trie: remove unused originalRoot field (#17862)
Diffstat (limited to 'trie/trie.go')
-rw-r--r--trie/trie.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/trie/trie.go b/trie/trie.go
index e920ccd23..af424d4ac 100644
--- a/trie/trie.go
+++ b/trie/trie.go
@@ -65,9 +65,8 @@ type LeafCallback func(leaf []byte, parent common.Hash) error
//
// Trie is not safe for concurrent use.
type Trie struct {
- db *Database
- root node
- originalRoot common.Hash
+ db *Database
+ root node
// Cache generation values.
// cachegen increases by one with each commit operation.
@@ -98,8 +97,7 @@ func New(root common.Hash, db *Database) (*Trie, error) {
panic("trie.New called without a database")
}
trie := &Trie{
- db: db,
- originalRoot: root,
+ db: db,
}
if root != (common.Hash{}) && root != emptyRoot {
rootnode, err := trie.resolveHash(root[:], nil)