Interface TransactionEvaluationContext


public interface TransactionEvaluationContext
This interface defines the context for evaluating a transaction. It provides methods to get the pending transaction, the evaluation timer, and the transaction gas price.
  • 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
    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

      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