Interface PluginTransactionPoolValidator
public interface PluginTransactionPoolValidator
Interface for the transaction validator plugin for txpool usage
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PluginTransactionPoolValidatorPlugin transaction pool validator that unconditionally validates every transaction -
Method Summary
Modifier and TypeMethodDescriptionvalidateTransaction(org.hyperledger.besu.datatypes.Transaction transaction, boolean isLocal, boolean hasPriority) Method called to decide whether a transaction can be added to the transaction pool.
-
Field Details
-
VALIDATE_ALL
Plugin transaction pool validator that unconditionally validates every transaction
-
-
Method Details
-
validateTransaction
Optional<String> validateTransaction(org.hyperledger.besu.datatypes.Transaction transaction, boolean isLocal, boolean hasPriority) Method called to decide whether a transaction can be added to the transaction pool.- Parameters:
transaction- candidate transactionisLocal- if the transaction was sent to this node via APIhasPriority- if the transaction has priority- Returns:
- Optional.empty() if the transaction is valid, an Optional containing an error message, if not
-