Reduce caller depth

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-06-27 20:32:14 +02:00
parent a6417dc24b
commit 4db61e71da
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -525,7 +525,7 @@ func (rt *Runtime) chargeGasFunc(skip int) func(GasCharge) {
func (rt *Runtime) chargeGasInternal(gas GasCharge, skip int) aerrors.ActorError { func (rt *Runtime) chargeGasInternal(gas GasCharge, skip int) aerrors.ActorError {
toUse := gas.Total() toUse := gas.Total()
var callers [10]uintptr var callers [4]uintptr
cout := gruntime.Callers(2+skip, callers[:]) cout := gruntime.Callers(2+skip, callers[:])
now := time.Now() now := time.Now()