aboutsummaryrefslogtreecommitdiffstats
path: root/state/statedb.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-03 19:25:44 +0800
committerobscuren <geffobscura@gmail.com>2015-03-03 19:25:44 +0800
commitb909a5ec18d30456c6028593448233bba0937482 (patch)
treee6907d706ce68180550242444a11b4300ec65a4e /state/statedb.go
parent1650b59cd93a29ea54328656a9318ffb10889ae5 (diff)
downloaddexon-b909a5ec18d30456c6028593448233bba0937482.tar
dexon-b909a5ec18d30456c6028593448233bba0937482.tar.gz
dexon-b909a5ec18d30456c6028593448233bba0937482.tar.bz2
dexon-b909a5ec18d30456c6028593448233bba0937482.tar.lz
dexon-b909a5ec18d30456c6028593448233bba0937482.tar.xz
dexon-b909a5ec18d30456c6028593448233bba0937482.tar.zst
dexon-b909a5ec18d30456c6028593448233bba0937482.zip
Trie => SecureTrie
Diffstat (limited to 'state/statedb.go')
-rw-r--r--state/statedb.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/state/statedb.go b/state/statedb.go
index 7e2b24b94..ee37c2e68 100644
--- a/state/statedb.go
+++ b/state/statedb.go
@@ -18,7 +18,7 @@ var statelogger = logger.NewLogger("STATE")
// * Accounts
type StateDB struct {
db ethutil.Database
- trie *trie.Trie
+ trie *trie.SecureTrie
stateObjects map[string]*StateObject
@@ -29,7 +29,7 @@ type StateDB struct {
// Create a new state from a given trie
func New(root []byte, db ethutil.Database) *StateDB {
- trie := trie.New(ethutil.CopyBytes(root), db)
+ trie := trie.NewSecure(ethutil.CopyBytes(root), db)
return &StateDB{db: db, trie: trie, stateObjects: make(map[string]*StateObject), refund: make(map[string]*big.Int)}
}