aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_manager.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-14 06:37:18 +0800
committerobscuren <geffobscura@gmail.com>2014-07-14 06:37:18 +0800
commit5b2e5d180fa79865b6319f4251a440da44a81809 (patch)
tree547d73c6110425eb6c78f929bacea1e80702137d /ethchain/state_manager.go
parent6426f3635eddaa1477e643886fd3c0eaf1fa6158 (diff)
downloadgo-tangerine-5b2e5d180fa79865b6319f4251a440da44a81809.tar
go-tangerine-5b2e5d180fa79865b6319f4251a440da44a81809.tar.gz
go-tangerine-5b2e5d180fa79865b6319f4251a440da44a81809.tar.bz2
go-tangerine-5b2e5d180fa79865b6319f4251a440da44a81809.tar.lz
go-tangerine-5b2e5d180fa79865b6319f4251a440da44a81809.tar.xz
go-tangerine-5b2e5d180fa79865b6319f4251a440da44a81809.tar.zst
go-tangerine-5b2e5d180fa79865b6319f4251a440da44a81809.zip
Changed diff output not to prefix hex with 0x
Diffstat (limited to 'ethchain/state_manager.go')
-rw-r--r--ethchain/state_manager.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go
index 62fcda8a5..f2ecd4b9f 100644
--- a/ethchain/state_manager.go
+++ b/ethchain/state_manager.go
@@ -151,7 +151,7 @@ done:
receipts = append(receipts, receipt)
handled = append(handled, tx)
- if ethutil.Config.Diff {
+ if ethutil.Config.Diff && ethutil.Config.DiffType == "all" {
state.CreateOutputForDiff()
}
}
@@ -187,8 +187,8 @@ func (sm *StateManager) Process(block *Block, dontReact bool) (err error) {
// before that.
defer state.Reset()
- if ethutil.Config.Diff {
- fmt.Printf("## 0x%x 0x%x ##\n", block.Hash(), block.Number)
+ if ethutil.Config.Diff && ethutil.Config.DiffType == "all" {
+ fmt.Printf("## %x %x ##\n", block.Hash(), block.Number)
}
receipts, err := sm.ApplyDiff(state, parent, block)