diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-19 17:57:02 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-19 17:57:02 +0800 |
commit | d7ab716eea1d1892e3358b1dece6b0e2cd31fce8 (patch) | |
tree | c0fe4ca2dc47ff8512065f3601b9f3ab6b21dd43 /state/statedb.go | |
parent | e67d32b46744928b07b4d964ae3dede9a1ffdddf (diff) | |
download | dexon-d7ab716eea1d1892e3358b1dece6b0e2cd31fce8.tar dexon-d7ab716eea1d1892e3358b1dece6b0e2cd31fce8.tar.gz dexon-d7ab716eea1d1892e3358b1dece6b0e2cd31fce8.tar.bz2 dexon-d7ab716eea1d1892e3358b1dece6b0e2cd31fce8.tar.lz dexon-d7ab716eea1d1892e3358b1dece6b0e2cd31fce8.tar.xz dexon-d7ab716eea1d1892e3358b1dece6b0e2cd31fce8.tar.zst dexon-d7ab716eea1d1892e3358b1dece6b0e2cd31fce8.zip |
Fixed mkdnode & added some tests
Diffstat (limited to 'state/statedb.go')
-rw-r--r-- | state/statedb.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/state/statedb.go b/state/statedb.go index 80bbe2afd..d01b6056d 100644 --- a/state/statedb.go +++ b/state/statedb.go @@ -33,6 +33,10 @@ func New(root []byte, db common.Database) *StateDB { return &StateDB{db: db, trie: trie, stateObjects: make(map[string]*StateObject), refund: make(map[string]*big.Int)} } +func (self *StateDB) PrintRoot() { + self.trie.Trie.PrintRoot() +} + func (self *StateDB) EmptyLogs() { self.logs = nil } |