aboutsummaryrefslogtreecommitdiffstats
path: root/core/state_transition.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-06-10 18:23:49 +0800
committerobscuren <geffobscura@gmail.com>2015-06-10 18:23:49 +0800
commit38c61f6f2567e7943c9a16e2be0a2bfedb3a1fb3 (patch)
tree3877af08004f9dc2de00001257c9fe678de049d1 /core/state_transition.go
parentff5b3ef0877978699235d20b3caa9890b35ec6f8 (diff)
downloaddexon-38c61f6f2567e7943c9a16e2be0a2bfedb3a1fb3.tar.gz
dexon-38c61f6f2567e7943c9a16e2be0a2bfedb3a1fb3.tar.zst
dexon-38c61f6f2567e7943c9a16e2be0a2bfedb3a1fb3.zip
core, core/vm: added structure logging
This also reduces the time required spend in the VM
Diffstat (limited to 'core/state_transition.go')
-rw-r--r--core/state_transition.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/state_transition.go b/core/state_transition.go
index 7672fa3ff..3dbc789f8 100644
--- a/core/state_transition.go
+++ b/core/state_transition.go
@@ -223,6 +223,10 @@ func (self *StateTransition) transitionState() (ret []byte, usedGas *big.Int, er
return nil, nil, InvalidTxError(err)
}
+ if vm.Debug {
+ VmStdErrFormat(vmenv.StructLogs())
+ }
+
self.refundGas()
self.state.AddBalance(self.coinbase, new(big.Int).Mul(self.gasUsed(), self.gasPrice))