Skip to content

Commit 4d9a400

Browse files
Merge pull request #3654 from OffchainLabs/gas_floor_legacy_fix
batch_posting report: fix addition of batchExtraGas
2 parents fcbea18 + c9e264c commit 4d9a400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arbos/internal_tx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ func ApplyInternalTxUpdate(tx *types.ArbitrumInternalTx, state *arbosState.Arbos
134134
Length: batchCalldataLength,
135135
NonZeros: batchCalldataNonZeros,
136136
})
137-
gasSpent = arbmath.SaturatingUAdd(gasSpent, batchExtraGas)
138137
if batchLegacyGas != ^uint64(0) && batchLegacyGas != gasSpent {
139138
log.Error("legacy gas doesn't fit local compute", "local", gasSpent, "legacy", batchLegacyGas, "timestamp", batchTimestamp)
140139
}
141140
}
141+
gasSpent = arbmath.SaturatingUAdd(gasSpent, batchExtraGas)
142142

143143
l1p := state.L1PricingState()
144144

0 commit comments

Comments
 (0)