Skip to content

Commit

Permalink
Add comment describing what RPCPostingGasHook is used for
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacolvin0 committed Jan 13, 2025
1 parent aaded57 commit 779b669
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/ethapi/transaction_args.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ func (args *TransactionArgs) ToMessage(baseFee *big.Int, globalGasCap uint64, he
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 {
Expand Down

0 comments on commit 779b669

Please sign in to comment.