aboutsummaryrefslogtreecommitdiffstats
path: root/internal
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 /internal
parentb8dec948d4d7d8257e63aeecf982c25aeec9a180 (diff)
parentbb6115b737a05e3b8bf70ff2ad74c703589627cb (diff)
downloadgo-tangerine-4dc1fb923ab77fe564bdda25f36744dffa235045.tar
go-tangerine-4dc1fb923ab77fe564bdda25f36744dffa235045.tar.gz
go-tangerine-4dc1fb923ab77fe564bdda25f36744dffa235045.tar.bz2
go-tangerine-4dc1fb923ab77fe564bdda25f36744dffa235045.tar.lz
go-tangerine-4dc1fb923ab77fe564bdda25f36744dffa235045.tar.xz
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 'internal')
-rw-r--r--internal/ethapi/tracer.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/ethapi/tracer.go b/internal/ethapi/tracer.go
index 16ec6ebf0..c6d4f814e 100644
--- a/internal/ethapi/tracer.go
+++ b/internal/ethapi/tracer.go
@@ -278,7 +278,7 @@ func wrapError(context string, err error) error {
}
// CaptureState implements the Tracer interface to trace a single step of VM execution
-func (jst *JavascriptTracer) CaptureState(env vm.Environment, pc uint64, op vm.OpCode, gas, cost *big.Int, memory *vm.Memory, stack *vm.Stack, contract *vm.Contract, depth int, err error) {
+func (jst *JavascriptTracer) CaptureState(env vm.Environment, pc uint64, op vm.OpCode, gas, cost *big.Int, memory *vm.Memory, stack *vm.Stack, contract *vm.Contract, depth int, err error) error {
if jst.err == nil {
jst.memory.memory = memory
jst.stack.stack = stack
@@ -301,6 +301,7 @@ func (jst *JavascriptTracer) CaptureState(env vm.Environment, pc uint64, op vm.O
jst.err = wrapError("step", err)
}
}
+ return nil
}
// GetResult calls the Javascript 'result' function and returns its value, or any accumulated error