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 TypeMethodDescriptioncom.google.common.base.StopwatchGets the stopwatch used for timing the evaluation.org.hyperledger.besu.datatypes.WeiGets the min gas price for block inclusionGets the pending block headerorg.hyperledger.besu.datatypes.PendingTransactionGets the pending transaction.org.hyperledger.besu.datatypes.WeiGets the gas price of the transaction.booleanReturns 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
-