From f1291f137c30d0308e1b7c7d0229356e1489aeb0 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Tue, 1 Dec 2020 13:53:30 +0100 Subject: [PATCH] Enable Callers tracing when GasTracing is enabled Signed-off-by: Jakub Sztandera --- chain/vm/runtime.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chain/vm/runtime.go b/chain/vm/runtime.go index a7e666d2fb0..cdb1720decd 100644 --- a/chain/vm/runtime.go +++ b/chain/vm/runtime.go @@ -5,6 +5,7 @@ import ( "context" "encoding/binary" "fmt" + gruntime "runtime" "time" "github.com/filecoin-project/go-address" @@ -534,7 +535,7 @@ func (rt *Runtime) chargeGasInternal(gas GasCharge, skip int) aerrors.ActorError if EnableGasTracing { var callers [10]uintptr - cout := 0 //gruntime.Callers(2+skip, callers[:]) + cout := gruntime.Callers(2+skip, callers[:]) now := build.Clock.Now() if rt.lastGasCharge != nil {