Skip to content

Commit

Permalink
Merge branch 'master' into include-timeboosted-receiptsfield
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshvanahalli authored Jan 15, 2025
2 parents 9257e4f + 7ab015d commit e543bb1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions internal/ethapi/transaction_args.go
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,12 @@ func (args *TransactionArgs) ToMessage(baseFee *big.Int, globalGasCap uint64, he
}
// Arbitrum: raise the gas cap to ignore L1 costs so that it's compute-only
if state != nil && !skipL1Charging {
// ToMessage recurses once to allow ArbOS to intercept the result for all callers
// ArbOS uses this to modify globalGasCap so that the cap will ignore this tx's specific L1 data costs
postingGas, err := core.RPCPostingGasHook(msg, header, state)
var postingGas uint64
var err error
if globalGasCap != 0 {
// Modify globalGasCap to ignore this tx's specific L1 data costs
postingGas, err = core.RPCPostingGasHook(msg, header, state)
}
if err == nil {
args.setGasUsingCap(globalGasCap + postingGas)
msg.GasLimit = uint64(*args.Gas)
Expand Down

0 comments on commit e543bb1

Please sign in to comment.