fix issue with gasLimit check for trimming (> instead of >=)

This commit is contained in:
vyzo 2020-09-09 12:58:51 +03:00
parent 0b09082450
commit 194b6eb9d8

View File

@ -344,7 +344,7 @@ tailLoop:
}
// do they fit as is? if it doesn't, trim to make it fit if possible
if chainGasLimit >= gasLimit {
if chainGasLimit > gasLimit {
chain.Trim(gasLimit-depGasLimit, mp, baseFee, allowNegativeChains(curTs.Height()))
if !chain.valid {