Gas estimation: Overestimate by 2 around the M1 upgrade

This commit is contained in:
Aayush Rajasekaran
2022-05-06 11:50:43 -04:00
parent 26a780a198
commit 8282484f65
+5
View File
@@ -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
}