Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 660deaa

Browse files
committed
miner: fix pointer reuse that was resulting in incorrect eff gas price calc
1 parent 216845a commit 660deaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

miner/worker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1870,7 +1870,7 @@ func (w *worker) computeBundleGas(env *environment, bundle types.MevBundle, stat
18701870
if err != nil {
18711871
return simulatedBundle{}, err
18721872
}
1873-
gasFeesTx := gasUsed.Mul(gasUsed, gasPrice)
1873+
gasFeesTx := new(big.Int).Mul(gasUsed, gasPrice)
18741874
coinbaseBalanceAfter := state.GetBalance(env.coinbase)
18751875
coinbaseDelta := big.NewInt(0).Sub(coinbaseBalanceAfter, coinbaseBalanceBefore)
18761876
coinbaseDelta.Sub(coinbaseDelta, gasFeesTx)

0 commit comments

Comments
 (0)