aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_manager.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-11 22:04:09 +0800
committerobscuren <geffobscura@gmail.com>2014-07-11 22:04:09 +0800
commit9010857677ac374e09bab62a89f2fb52c11ed6d3 (patch)
tree41c047472589f281fe83b333b24d96988dbc46f8 /ethchain/state_manager.go
parentff151f9fbcfea2d21139ec778fc7c1ac32282d71 (diff)
downloadgo-tangerine-9010857677ac374e09bab62a89f2fb52c11ed6d3.tar
go-tangerine-9010857677ac374e09bab62a89f2fb52c11ed6d3.tar.gz
go-tangerine-9010857677ac374e09bab62a89f2fb52c11ed6d3.tar.bz2
go-tangerine-9010857677ac374e09bab62a89f2fb52c11ed6d3.tar.lz
go-tangerine-9010857677ac374e09bab62a89f2fb52c11ed6d3.tar.xz
go-tangerine-9010857677ac374e09bab62a89f2fb52c11ed6d3.tar.zst
go-tangerine-9010857677ac374e09bab62a89f2fb52c11ed6d3.zip
Special diff output for execution
Diffstat (limited to 'ethchain/state_manager.go')
-rw-r--r--ethchain/state_manager.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go
index a5afa5096..62fcda8a5 100644
--- a/ethchain/state_manager.go
+++ b/ethchain/state_manager.go
@@ -150,6 +150,10 @@ done:
receipts = append(receipts, receipt)
handled = append(handled, tx)
+
+ if ethutil.Config.Diff {
+ state.CreateOutputForDiff()
+ }
}
parent.GasUsed = totalUsedGas
@@ -183,6 +187,10 @@ 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)
+ }
+
receipts, err := sm.ApplyDiff(state, parent, block)
defer func() {
if err != nil {