diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-20 21:19:34 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-20 21:19:34 +0800 |
commit | ea9a549bbdc8377bca73f1417f2dc4a18396a382 (patch) | |
tree | f4f8719ad52f17b3db4b26626a9f5932870f9009 /state/dump.go | |
parent | 5c975dd4ed7adb29453fa28e64c0193d323cae99 (diff) | |
download | dexon-ea9a549bbdc8377bca73f1417f2dc4a18396a382.tar dexon-ea9a549bbdc8377bca73f1417f2dc4a18396a382.tar.gz dexon-ea9a549bbdc8377bca73f1417f2dc4a18396a382.tar.bz2 dexon-ea9a549bbdc8377bca73f1417f2dc4a18396a382.tar.lz dexon-ea9a549bbdc8377bca73f1417f2dc4a18396a382.tar.xz dexon-ea9a549bbdc8377bca73f1417f2dc4a18396a382.tar.zst dexon-ea9a549bbdc8377bca73f1417f2dc4a18396a382.zip |
Removed exported fields from state object and added proper set/getters
Diffstat (limited to 'state/dump.go')
-rw-r--r-- | state/dump.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/state/dump.go b/state/dump.go index ac646480c..81895f1a3 100644 --- a/state/dump.go +++ b/state/dump.go @@ -30,7 +30,7 @@ func (self *StateDB) Dump() []byte { for it.Next() { stateObject := NewStateObjectFromBytes(it.Key, it.Value, self.db) - account := Account{Balance: stateObject.balance.String(), Nonce: stateObject.Nonce, Root: ethutil.Bytes2Hex(stateObject.Root()), CodeHash: ethutil.Bytes2Hex(stateObject.codeHash)} + account := Account{Balance: stateObject.balance.String(), Nonce: stateObject.nonce, Root: ethutil.Bytes2Hex(stateObject.Root()), CodeHash: ethutil.Bytes2Hex(stateObject.codeHash)} account.Storage = make(map[string]string) storageIt := stateObject.State.trie.Iterator() @@ -50,7 +50,7 @@ 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) + fmt.Printf("%x %x %x %x\n", self.Address(), self.State.Root(), self.balance.Bytes(), self.nonce) it := self.State.trie.Iterator() for it.Next() { fmt.Printf("%x %x\n", it.Key, it.Value) |