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

Commit

Permalink
miner: fix pointer reuse that was resulting in incorrect eff gas pric…
Browse files Browse the repository at this point in the history
…e calc
  • Loading branch information
bsh98 committed Feb 7, 2023
1 parent 216845a commit 660deaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1870,7 +1870,7 @@ func (w *worker) computeBundleGas(env *environment, bundle types.MevBundle, stat
if err != nil {
return simulatedBundle{}, err
}
gasFeesTx := gasUsed.Mul(gasUsed, gasPrice)
gasFeesTx := new(big.Int).Mul(gasUsed, gasPrice)
coinbaseBalanceAfter := state.GetBalance(env.coinbase)
coinbaseDelta := big.NewInt(0).Sub(coinbaseBalanceAfter, coinbaseBalanceBefore)
coinbaseDelta.Sub(coinbaseDelta, gasFeesTx)
Expand Down

0 comments on commit 660deaa

Please sign in to comment.