aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/vm.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-10-31 19:07:43 +0800
committerGitHub <noreply@github.com>2016-10-31 19:07:43 +0800
commit4dc1fb923ab77fe564bdda25f36744dffa235045 (patch)
treece6de64598f42416dbffc1dff24904429f92031c /core/vm/vm.go
parentb8dec948d4d7d8257e63aeecf982c25aeec9a180 (diff)
parentbb6115b737a05e3b8bf70ff2ad74c703589627cb (diff)
downloadgo-tangerine-4dc1fb923ab77fe564bdda25f36744dffa235045.tar.gz
go-tangerine-4dc1fb923ab77fe564bdda25f36744dffa235045.tar.zst
go-tangerine-4dc1fb923ab77fe564bdda25f36744dffa235045.zip
Merge pull request #3064 from pirapira/limit_struct_logs
core/vm: add limit option to LogConfig
Diffstat (limited to 'core/vm/vm.go')
-rw-r--r--core/vm/vm.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/vm/vm.go b/core/vm/vm.go
index 205934822..09cddc2f8 100644
--- a/core/vm/vm.go
+++ b/core/vm/vm.go
@@ -188,7 +188,10 @@ func (evm *EVM) Run(contract *Contract, input []byte) (ret []byte, err error) {
mem.Resize(newMemSize.Uint64())
// Add a log message
if evm.cfg.Debug {
- evm.cfg.Tracer.CaptureState(evm.env, pc, op, contract.Gas, cost, mem, stack, contract, evm.env.Depth(), nil)
+ err = evm.cfg.Tracer.CaptureState(evm.env, pc, op, contract.Gas, cost, mem, stack, contract, evm.env.Depth(), nil)
+ if err != nil {
+ return nil, err
+ }
}
if opPtr := evm.jumpTable[op]; opPtr.valid {