diff options
author | obscuren <geffobscura@gmail.com> | 2015-06-10 18:23:49 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-06-10 18:23:49 +0800 |
commit | 38c61f6f2567e7943c9a16e2be0a2bfedb3a1fb3 (patch) | |
tree | 3877af08004f9dc2de00001257c9fe678de049d1 /core/state_transition.go | |
parent | ff5b3ef0877978699235d20b3caa9890b35ec6f8 (diff) | |
download | dexon-38c61f6f2567e7943c9a16e2be0a2bfedb3a1fb3.tar dexon-38c61f6f2567e7943c9a16e2be0a2bfedb3a1fb3.tar.gz dexon-38c61f6f2567e7943c9a16e2be0a2bfedb3a1fb3.tar.bz2 dexon-38c61f6f2567e7943c9a16e2be0a2bfedb3a1fb3.tar.lz dexon-38c61f6f2567e7943c9a16e2be0a2bfedb3a1fb3.tar.xz 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.go | 4 |
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)) |