Volatile gasLimit
for _submit()
method
#499
Labels
next-upgrade
Things to pickup for the next protocol upgrade
gasLimit
for _submit()
method
#499
Context
For the
_submit()
transactions, the estimated gas limit is not correct sometimes.The problem was introduced with the Merge-ready protocol upgrade.
On average, every 8th transaction is reverted
Purpose
The difference appears due to the condition within the
calculateCurrentStakeLimit()
method of theStakeLimitUtils
library.Depending on the
block.number
and with the same state, the gas consumption changes when condition is met, imposing additional80 gas
.Solution
The possible solution to overcome the issue is to make the method gas consumption constant with respect to the current
block.number
(if the same state invariant is preserved)The text was updated successfully, but these errors were encountered: