@ -494,7 +494,7 @@ func BenchmarkSimpleLoop(b *testing.B) {
|
|||||||
//Execute(loopingCode, nil, &Config{
|
//Execute(loopingCode, nil, &Config{
|
||||||
// EVMConfig: vm.Config{
|
// EVMConfig: vm.Config{
|
||||||
// Debug: true,
|
// Debug: true,
|
||||||
// JSTracer: tracer,
|
// Tracer: tracer,
|
||||||
// }})
|
// }})
|
||||||
// 100M gas
|
// 100M gas
|
||||||
benchmarkNonModifyingCode(100000000, staticCallIdentity, "staticcall-identity-100M", "", b)
|
benchmarkNonModifyingCode(100000000, staticCallIdentity, "staticcall-identity-100M", "", b)
|
||||||
|
@ -866,7 +866,7 @@ func (api *API) traceTx(ctx context.Context, message core.Message, txctx *Contex
|
|||||||
go func() {
|
go func() {
|
||||||
<-deadlineCtx.Done()
|
<-deadlineCtx.Done()
|
||||||
if deadlineCtx.Err() == context.DeadlineExceeded {
|
if deadlineCtx.Err() == context.DeadlineExceeded {
|
||||||
tracer.(*JSTracer).Stop(errors.New("execution timeout"))
|
tracer.Stop(errors.New("execution timeout"))
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
@ -223,7 +223,7 @@ func TestIsPrecompile(t *testing.T) {
|
|||||||
t.Error(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
if string(res) != "false" {
|
if string(res) != "false" {
|
||||||
t.Errorf("JSTracer should not consider blake2f as precompile in byzantium")
|
t.Errorf("Tracer should not consider blake2f as precompile in byzantium")
|
||||||
}
|
}
|
||||||
|
|
||||||
tracer, _ = New("{addr: toAddress('0000000000000000000000000000000000000009'), res: null, step: function() { this.res = isPrecompiled(this.addr); }, fault: function() {}, result: function() { return this.res; }}", new(Context))
|
tracer, _ = New("{addr: toAddress('0000000000000000000000000000000000000009'), res: null, step: function() { this.res = isPrecompiled(this.addr); }, fault: function() {}, result: function() { return this.res; }}", new(Context))
|
||||||
@ -233,7 +233,7 @@ func TestIsPrecompile(t *testing.T) {
|
|||||||
t.Error(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
if string(res) != "true" {
|
if string(res) != "true" {
|
||||||
t.Errorf("JSTracer should consider blake2f as precompile in istanbul")
|
t.Errorf("Tracer should consider blake2f as precompile in istanbul")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user