diff options
author | obscuren <geffobscura@gmail.com> | 2015-06-17 19:27:51 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-06-17 19:27:51 +0800 |
commit | aa699a1283c93740bba15f94c774d92ea6fe1980 (patch) | |
tree | 08e04161d8552e8516f449440067c76728fb9c19 /core/state/dump.go | |
parent | aaddc99c35f1fcc9b5d7198dd6571dfa43718ae8 (diff) | |
download | dexon-aa699a1283c93740bba15f94c774d92ea6fe1980.tar.gz dexon-aa699a1283c93740bba15f94c774d92ea6fe1980.tar.zst dexon-aa699a1283c93740bba15f94c774d92ea6fe1980.zip |
core/state: removed state from state object
Diffstat (limited to 'core/state/dump.go')
-rw-r--r-- | core/state/dump.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/state/dump.go b/core/state/dump.go index 70ea21691..f6f2f9029 100644 --- a/core/state/dump.go +++ b/core/state/dump.go @@ -34,7 +34,7 @@ func (self *StateDB) RawDump() World { account := Account{Balance: stateObject.balance.String(), Nonce: stateObject.nonce, Root: common.Bytes2Hex(stateObject.Root()), CodeHash: common.Bytes2Hex(stateObject.codeHash)} account.Storage = make(map[string]string) - storageIt := stateObject.State.trie.Iterator() + storageIt := stateObject.trie.Iterator() for storageIt.Next() { account.Storage[common.Bytes2Hex(self.trie.GetKey(storageIt.Key))] = common.Bytes2Hex(storageIt.Value) } @@ -54,8 +54,8 @@ func (self *StateDB) Dump() []byte { // Debug stuff func (self *StateObject) CreateOutputForDiff() { - fmt.Printf("%x %x %x %x\n", self.Address(), self.State.Root(), self.balance.Bytes(), self.nonce) - it := self.State.trie.Iterator() + fmt.Printf("%x %x %x %x\n", self.Address(), self.Root(), self.balance.Bytes(), self.nonce) + it := self.trie.Iterator() for it.Next() { fmt.Printf("%x %x\n", it.Key, it.Value) } |