Interface PluginTransactionSelector

All Superinterfaces:
TransactionSelector
All Known Implementing Classes:
AbstractStatefulPluginTransactionSelector

public interface PluginTransactionSelector extends TransactionSelector
Interface for the transaction selector
  • Field Details

    • ACCEPT_ALL

      static final PluginTransactionSelector ACCEPT_ALL
      Plugin transaction selector that unconditionally select every transaction
  • Method Details

    • getOperationTracer

      default BlockAwareOperationTracer getOperationTracer()
      Method that returns an OperationTracer that will be used when executing transactions that are candidates to be added to a block.
      Returns:
      OperationTracer to be used to trace candidate transactions
    • evaluateTransactionPreProcessing

      TransactionSelectionResult evaluateTransactionPreProcessing(TransactionEvaluationContext evaluationContext)
      Method called to decide whether a transaction is added to a block. The result can also indicate that no further transactions can be added to the block.
      Parameters:
      evaluationContext - The current selection context
      Returns:
      TransactionSelectionResult that indicates whether to include the transaction
    • evaluateTransactionPostProcessing

      TransactionSelectionResult evaluateTransactionPostProcessing(TransactionEvaluationContext evaluationContext, TransactionProcessingResult processingResult)
      Method called to decide whether a processed transaction is added to a block. The result can also indicate that no further transactions can be added to the block.
      Parameters:
      evaluationContext - The current selection context
      processingResult - the transaction processing result
      Returns:
      TransactionSelectionResult that indicates whether to include the transaction
    • onTransactionSelected

      default void onTransactionSelected(TransactionEvaluationContext evaluationContext, TransactionProcessingResult processingResult)
      Method called when a transaction is selected to be added to a block.
      Parameters:
      evaluationContext - The current selection context
      processingResult - The result of processing the selected transaction.
    • onTransactionNotSelected

      default void onTransactionNotSelected(TransactionEvaluationContext evaluationContext, TransactionSelectionResult transactionSelectionResult)
      Method called when a transaction is not selected to be added to a block.
      Parameters:
      evaluationContext - The current selection context
      transactionSelectionResult - The transaction selection result