Interface TransactionEvaluationContext


public interface TransactionEvaluationContext
The context in which a candidate transaction is evaluated for block inclusion: the pending block header, the pending transaction, the evaluation timer, the transaction gas price, the minimum gas price for inclusion, and whether the evaluation has been cancelled.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.common.base.Stopwatch
    Gets the stopwatch used for timing the evaluation.
    org.hyperledger.besu.datatypes.Wei
    Gets the min gas price for block inclusion
    org.hyperledger.besu.plugin.data.ProcessableBlockHeader
    Gets the pending block header
    org.hyperledger.besu.datatypes.PendingTransaction
    Gets the pending transaction.
    org.hyperledger.besu.datatypes.Wei
    Gets the gas price of the transaction.
    boolean
    Returns true if the evaluation of the tx is cancelled
  • Method Details

    • getPendingBlockHeader

      org.hyperledger.besu.plugin.data.ProcessableBlockHeader getPendingBlockHeader()
      Gets the pending block header
      Returns:
      the pending block header
    • getPendingTransaction

      org.hyperledger.besu.datatypes.PendingTransaction getPendingTransaction()
      Gets the pending transaction.
      Returns:
      the pending transaction
    • getEvaluationTimer

      com.google.common.base.Stopwatch getEvaluationTimer()
      Gets the stopwatch used for timing the evaluation.
      Returns:
      the evaluation timer
    • getTransactionGasPrice

      org.hyperledger.besu.datatypes.Wei getTransactionGasPrice()
      Gets the gas price of the transaction.
      Returns:
      the transaction gas price
    • getMinGasPrice

      org.hyperledger.besu.datatypes.Wei getMinGasPrice()
      Gets the min gas price for block inclusion
      Returns:
      the min gas price
    • isCancelled

      boolean isCancelled()
      Returns true if the evaluation of the tx is cancelled
      Returns:
      true if the evaluation of the tx is cancelled