diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-17 18:42:32 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-17 18:42:32 +0800 |
commit | 793e666f36e512bceb0d92d0a8dfe1d7c508c0e2 (patch) | |
tree | 60da2b7c280136c91fe357e81d96061a07050f59 /ethstate/dump.go | |
parent | 4008ff32c903e6894f5fb4fb69c795641641d192 (diff) | |
download | go-tangerine-793e666f36e512bceb0d92d0a8dfe1d7c508c0e2.tar go-tangerine-793e666f36e512bceb0d92d0a8dfe1d7c508c0e2.tar.gz go-tangerine-793e666f36e512bceb0d92d0a8dfe1d7c508c0e2.tar.bz2 go-tangerine-793e666f36e512bceb0d92d0a8dfe1d7c508c0e2.tar.lz go-tangerine-793e666f36e512bceb0d92d0a8dfe1d7c508c0e2.tar.xz go-tangerine-793e666f36e512bceb0d92d0a8dfe1d7c508c0e2.tar.zst go-tangerine-793e666f36e512bceb0d92d0a8dfe1d7c508c0e2.zip |
Dump bytes instead of strings
Diffstat (limited to 'ethstate/dump.go')
-rw-r--r-- | ethstate/dump.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethstate/dump.go b/ethstate/dump.go index 2406dfc49..be60a05fc 100644 --- a/ethstate/dump.go +++ b/ethstate/dump.go @@ -19,7 +19,7 @@ type World struct { Accounts map[string]Account `json:"accounts"` } -func (self *State) Dump() string { +func (self *State) Dump() []byte { world := World{ Root: ethutil.Bytes2Hex(self.Trie.Root.([]byte)), Accounts: make(map[string]Account), @@ -43,5 +43,5 @@ func (self *State) Dump() string { fmt.Println("dump err", err) } - return string(json) + return json } |