From 8282484f655e1079156d419d182e2963767b58bb Mon Sep 17 00:00:00 2001 From: Aayush Rajasekaran Date: Fri, 6 May 2022 11:50:43 -0400 Subject: [PATCH] Gas estimation: Overestimate by 2 around the M1 upgrade --- node/impl/full/gas.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/node/impl/full/gas.go b/node/impl/full/gas.go index 53e4b5a03..421beba2a 100644 --- a/node/impl/full/gas.go +++ b/node/impl/full/gas.go @@ -309,6 +309,11 @@ func gasEstimateGasLimit( } } + // Overestimate gas used around the + if ts.Height() <= build.UpgradeFVM1Height && (build.UpgradeFVM1Height-ts.Height() <= 5) { + ret *= 2 + } + return ret, nil }