Skip to content

Commit 416d554

Browse files
committed
add fix for intrinsic gas calc
1 parent 73db97e commit 416d554

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ require (
6060
github.com/beorn7/perks v1.0.1 // indirect
6161
github.com/bits-and-blooms/bitset v1.10.0 // indirect
6262
github.com/boltdb/bolt v1.3.1 // indirect
63-
github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect
63+
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
6464
github.com/btcsuite/btcd/btcutil v1.1.5 // indirect
6565
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f // indirect
6666
github.com/cespare/xxhash/v2 v2.3.0 // indirect

op-batcher/batcher/driver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ func (l *BatchSubmitter) sendTransaction(ctx context.Context, txdata txData, que
590590
}
591591

592592
func (l *BatchSubmitter) queueTx(txdata txData, isCancel bool, candidate *txmgr.TxCandidate, queue *txmgr.Queue[txRef], receiptsCh chan txmgr.TxReceipt[txRef]) {
593-
intrinsicGas, err := core.IntrinsicGas(candidate.TxData, nil, false, true, true, false)
593+
intrinsicGas, err := core.IntrinsicGas(candidate.TxData, nil, nil, false, true, true, false)
594594
if err != nil {
595595
// we log instead of return an error here because txmgr can do its own gas estimation
596596
l.Log.Error("Failed to calculate intrinsic gas", "err", err)

op-batcher/batcher/test_batch_submitter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (l *TestBatchSubmitter) JamTxPool(ctx context.Context) error {
3333
} else if candidate, err = l.blobTxCandidate(emptyTxData); err != nil {
3434
return err
3535
}
36-
if candidate.GasLimit, err = core.IntrinsicGas(candidate.TxData, nil, false, true, true, false); err != nil {
36+
if candidate.GasLimit, err = core.IntrinsicGas(candidate.TxData, nil, nil, false, true, true, false); err != nil {
3737
return err
3838
}
3939

0 commit comments

Comments
 (0)