use of org.hyperledger.besu.ethereum.eth.transactions.sorter.AbstractPendingTransactionsSorter in project besu by hyperledger.
the class TransactionPoolFactory method createTransactionPool.
public static TransactionPool createTransactionPool(final ProtocolSchedule protocolSchedule, final ProtocolContext protocolContext, final EthContext ethContext, final Clock clock, final MetricsSystem metricsSystem, final SyncState syncState, final MiningParameters miningParameters, final TransactionPoolConfiguration transactionPoolConfiguration) {
final AbstractPendingTransactionsSorter pendingTransactions = createPendingTransactionsSorter(protocolSchedule, protocolContext, clock, metricsSystem, transactionPoolConfiguration);
final PeerTransactionTracker transactionTracker = new PeerTransactionTracker();
final TransactionsMessageSender transactionsMessageSender = new TransactionsMessageSender(transactionTracker);
final NewPooledTransactionHashesMessageSender newPooledTransactionHashesMessageSender = new NewPooledTransactionHashesMessageSender(transactionTracker);
return createTransactionPool(protocolSchedule, protocolContext, ethContext, metricsSystem, syncState, miningParameters, transactionPoolConfiguration, pendingTransactions, transactionTracker, transactionsMessageSender, newPooledTransactionHashesMessageSender);
}
Aggregations