aboutsummaryrefslogtreecommitdiffstats
path: root/state/dump.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2014-11-27 20:23:31 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2014-11-27 20:23:31 +0800
commitef7961b7d27be930a4d9dc81527a55497d3dea2e (patch)
tree5746b715b1b66c5767779e2e4ca66be345333e13 /state/dump.go
parentc17a3cb0ceec44c10bc84d05f0d81f08894c792c (diff)
parent8cf9ed0ea588e97f2baf0f834248727e8fbca18f (diff)
downloaddexon-ef7961b7d27be930a4d9dc81527a55497d3dea2e.tar
dexon-ef7961b7d27be930a4d9dc81527a55497d3dea2e.tar.gz
dexon-ef7961b7d27be930a4d9dc81527a55497d3dea2e.tar.bz2
dexon-ef7961b7d27be930a4d9dc81527a55497d3dea2e.tar.lz
dexon-ef7961b7d27be930a4d9dc81527a55497d3dea2e.tar.xz
dexon-ef7961b7d27be930a4d9dc81527a55497d3dea2e.tar.zst
dexon-ef7961b7d27be930a4d9dc81527a55497d3dea2e.zip
Merge pull request #194 from ethereum/poc8
Update tests branch to PoC8
Diffstat (limited to 'state/dump.go')
-rw-r--r--state/dump.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/state/dump.go b/state/dump.go
index be3b362c4..186c6dd73 100644
--- a/state/dump.go
+++ b/state/dump.go
@@ -46,3 +46,11 @@ func (self *State) Dump() []byte {
return json
}
+
+// Debug stuff
+func (self *StateObject) CreateOutputForDiff() {
+ fmt.Printf("%x %x %x %x\n", self.Address(), self.State.Root(), self.balance.Bytes(), self.Nonce)
+ self.EachStorage(func(addr string, value *ethutil.Value) {
+ fmt.Printf("%x %x\n", addr, value.Bytes())
+ })
+}