Interface TransactionPoolService
- All Superinterfaces:
org.hyperledger.besu.plugin.services.BesuService
public interface TransactionPoolService
extends org.hyperledger.besu.plugin.services.BesuService
Service to control and inspect the transaction pool: enable or disable the pool, query whether it
is currently enabled, and read the pending transactions.
-
Method Summary
Modifier and TypeMethodDescriptionvoidDisables the transaction pool.voidEnables the transaction pool.Collection<? extends org.hyperledger.besu.datatypes.PendingTransaction> Returns the collection of pending transactions.booleanChecks if the transaction pool is enabled.
-
Method Details
-
disableTransactionPool
void disableTransactionPool()Disables the transaction pool. -
enableTransactionPool
void enableTransactionPool()Enables the transaction pool. -
isTransactionPoolEnabled
boolean isTransactionPoolEnabled()Checks if the transaction pool is enabled.- Returns:
trueif the transaction pool is enabled; otherwisefalse
-
getPendingTransactions
Collection<? extends org.hyperledger.besu.datatypes.PendingTransaction> getPendingTransactions()Returns the collection of pending transactions.- Returns:
- a collection of pending transactions
-