use of org.hyperledger.besu.ethstats.report.PendingTransactionsReport in project besu by hyperledger.
the class EthStatsService method sendPendingTransactionReport.
/**
* Sends the number of pending transactions in the pool
*/
private void sendPendingTransactionReport() {
final int pendingTransactionsNumber = transactionPool.getPendingTransactions().size();
final PendingTransactionsReport pendingTransactionsReport = ImmutablePendingTransactionsReport.builder().id(enodeURL.getNodeId().toHexString()).stats(pendingTransactionsNumber).build();
sendMessage(webSocket, new EthStatsRequest(PENDING, pendingTransactionsReport));
}
Aggregations