aboutsummaryrefslogtreecommitdiffstats
path: root/core/state/dump.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-12-11 08:29:41 +0800
committerFelix Lange <fjl@twurst.com>2015-12-18 19:09:10 +0800
commit1b89bd5d269d2d85a7c72067e18212135d8757f9 (patch)
treeb6d3cf1bd43f14699f6a5fdcb7a6232c6b6c1044 /core/state/dump.go
parent9be5d5cd90517244b239c6af4e602d898fafeaf7 (diff)
downloaddexon-1b89bd5d269d2d85a7c72067e18212135d8757f9.tar.gz
dexon-1b89bd5d269d2d85a7c72067e18212135d8757f9.tar.zst
dexon-1b89bd5d269d2d85a7c72067e18212135d8757f9.zip
core/state, core/types use package rlp for state, receipt serialisation
Diffstat (limited to 'core/state/dump.go')
-rw-r--r--core/state/dump.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/state/dump.go b/core/state/dump.go
index 9acb8a024..cff9c50aa 100644
--- a/core/state/dump.go
+++ b/core/state/dump.go
@@ -45,7 +45,7 @@ func (self *StateDB) RawDump() World {
it := self.trie.Iterator()
for it.Next() {
addr := self.trie.GetKey(it.Key)
- stateObject := NewStateObjectFromBytes(common.BytesToAddress(addr), it.Value, self.db)
+ stateObject, _ := DecodeObject(common.BytesToAddress(addr), self.db, it.Value)
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)