diff --git a/miner/ordering.go b/miner/ordering.go index 98061e32e685..7e3640a455d8 100644 --- a/miner/ordering.go +++ b/miner/ordering.go @@ -126,11 +126,15 @@ func (t *transactionsByPriceAndNonce) Copy() *transactionsByPriceAndNonce { for acc, txsTmp := range t.txs { txs[acc] = txsTmp } + var baseFee *big.Int + if t.baseFee != nil { + baseFee = big.NewInt(0).Set(t.baseFee) + } return &transactionsByPriceAndNonce{ heads: heads, txs: txs, signer: t.signer, - baseFee: big.NewInt(0).Set(t.baseFee), + baseFee: baseFee, } }