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 TypeMethodDescriptioncom.google.common.base.StopwatchGets the stopwatch used for timing the evaluation.org.hyperledger.besu.datatypes.WeiGets the min gas price for block inclusionorg.hyperledger.besu.plugin.data.ProcessableBlockHeaderGets 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
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
-