aboutsummaryrefslogtreecommitdiffstats
path: root/state/dump.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-17 00:09:08 +0800
committerobscuren <geffobscura@gmail.com>2015-03-17 00:09:08 +0800
commite620bde405161771ea7ecd1cee8641eb9265465e (patch)
treef41b8f98215a2db7aa59e11ce107724b978f759d /state/dump.go
parent76f215b0feca1fc56890fe5f9ec1acbed79cb701 (diff)
downloadgo-tangerine-e620bde405161771ea7ecd1cee8641eb9265465e.tar
go-tangerine-e620bde405161771ea7ecd1cee8641eb9265465e.tar.gz
go-tangerine-e620bde405161771ea7ecd1cee8641eb9265465e.tar.bz2
go-tangerine-e620bde405161771ea7ecd1cee8641eb9265465e.tar.lz
go-tangerine-e620bde405161771ea7ecd1cee8641eb9265465e.tar.xz
go-tangerine-e620bde405161771ea7ecd1cee8641eb9265465e.tar.zst
go-tangerine-e620bde405161771ea7ecd1cee8641eb9265465e.zip
conversion state
Diffstat (limited to 'state/dump.go')
-rw-r--r--state/dump.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/state/dump.go b/state/dump.go
index c5f556e1a..2aafd1998 100644
--- a/state/dump.go
+++ b/state/dump.go
@@ -28,7 +28,8 @@ func (self *StateDB) RawDump() World {
it := self.trie.Iterator()
for it.Next() {
- stateObject := NewStateObjectFromBytes(it.Key, it.Value, self.db)
+ fmt.Printf("%x\n", it.Key, len(it.Key))
+ stateObject := NewStateObjectFromBytes(common.BytesToAddress(it.Key), it.Value, self.db)
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)