Interface PluginTransactionSelector
- All Superinterfaces:
TransactionSelector
- All Known Implementing Classes:
AbstractStatefulPluginTransactionSelector
Interface for the transaction selector
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PluginTransactionSelectorPlugin transaction selector that unconditionally select every transaction -
Method Summary
Modifier and TypeMethodDescriptionevaluateTransactionPostProcessing(TransactionEvaluationContext evaluationContext, TransactionProcessingResult processingResult) Method called to decide whether a processed transaction is added to a block.evaluateTransactionPreProcessing(TransactionEvaluationContext evaluationContext) Method called to decide whether a transaction is added to a block.default BlockAwareOperationTracerMethod that returns an OperationTracer that will be used when executing transactions that are candidates to be added to a block.default voidonTransactionNotSelected(TransactionEvaluationContext evaluationContext, TransactionSelectionResult transactionSelectionResult) Method called when a transaction is not selected to be added to a block.default voidonTransactionSelected(TransactionEvaluationContext evaluationContext, TransactionProcessingResult processingResult) Method called when a transaction is selected to be added to a block.
-
Field Details
-
ACCEPT_ALL
Plugin transaction selector that unconditionally select every transaction
-
-
Method Details
-
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 contextprocessingResult- 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 contextprocessingResult- 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 contexttransactionSelectionResult- The transaction selection result
-