Commit 75635aa0 authored by Mark Tyneway's avatar Mark Tyneway

message-utils: better comment

parent 0b1f7e1f
...@@ -63,6 +63,10 @@ export const migratedWithdrawalGasLimit = ( ...@@ -63,6 +63,10 @@ export const migratedWithdrawalGasLimit = (
overhead = BigNumber.from(200_000) overhead = BigNumber.from(200_000)
} else { } else {
// Dynamic overhead (EIP-150) // Dynamic overhead (EIP-150)
// We use a constant 1 million gas limit due to the overhead of simulating all migrated withdrawal
// transactions during the migration. This is a conservative estimate, and if a withdrawal
// uses more than the minimum gas limit, it will fail and need to be replayed with a higher
// gas limit.
const dynamicOverhead = MIN_GAS_DYNAMIC_OVERHEAD_NUMERATOR.mul( const dynamicOverhead = MIN_GAS_DYNAMIC_OVERHEAD_NUMERATOR.mul(
1_000_000 1_000_000
).div(MIN_GAS_DYNAMIC_OVERHEAD_DENOMINATOR) ).div(MIN_GAS_DYNAMIC_OVERHEAD_DENOMINATOR)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment