Interface PluginTransactionPoolValidator


public interface PluginTransactionPoolValidator
Interface for the transaction validator plugin for txpool usage
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Plugin transaction pool validator that unconditionally validates every transaction
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • Field Details

    • VALIDATE_ALL

      static final PluginTransactionPoolValidator 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 transaction
      isLocal - if the transaction was sent to this node via API
      hasPriority - if the transaction has priority
      Returns:
      Optional.empty() if the transaction is valid, an Optional containing an error message, if not