@@ -15,7 +15,6 @@ import (
15
15
"github.com/ethereum/go-ethereum/core/txpool"
16
16
"github.com/ethereum/go-ethereum/core/types"
17
17
"github.com/ethereum/go-ethereum/core/vm"
18
- "github.com/ethereum/go-ethereum/internal/ethapi"
19
18
"github.com/ethereum/go-ethereum/log"
20
19
"github.com/ethereum/go-ethereum/params"
21
20
"github.com/ethereum/go-ethereum/rlp"
@@ -94,7 +93,7 @@ func (w *Miner) buildTransactionsLists(
94
93
}
95
94
96
95
return lastTransaction , & PreBuiltTxList {
97
- TxList : w . toRPCTransactions ( env .txs ) ,
96
+ TxList : env .txs ,
98
97
EstimatedGasUsed : env .header .GasLimit - env .gasPool .Gas (),
99
98
BytesLength : uint64 (len (b )),
100
99
}, nil
@@ -339,15 +338,6 @@ loop:
339
338
return lastTransaction
340
339
}
341
340
342
- // toRPCTransactions converts the given transactions to RPC transactions.
343
- func (w * Miner ) toRPCTransactions (txs types.Transactions ) []* ethapi.RPCTransaction {
344
- var rpcTxs []* ethapi.RPCTransaction
345
- for _ , tx := range txs {
346
- rpcTxs = append (rpcTxs , ethapi .NewRPCPendingTransaction (tx , nil , w .chainConfig ))
347
- }
348
- return rpcTxs
349
- }
350
-
351
341
// encodeAndCompressTxList encodes and compresses the given transactions list.
352
342
func encodeAndCompressTxList (txs types.Transactions ) ([]byte , error ) {
353
343
b , err := rlp .EncodeToBytes (txs )
0 commit comments