diff --git a/eth/gasprice/gasprice.go b/eth/gasprice/gasprice.go index 2b7870e05b..54325692c6 100644 --- a/eth/gasprice/gasprice.go +++ b/eth/gasprice/gasprice.go @@ -167,7 +167,9 @@ func (gpo *Oracle) getBlockPrices(ctx context.Context, signer types.Signer, bloc return } - txs := block.Transactions() + blockTxs := block.Transactions() + txs := make([]*types.Transaction, len(blockTxs)) + copy(txs, blockTxs) sort.Sort(transactionsByGasPrice(txs)) for _, tx := range txs {