Class PluginBlockSimulationResult

java.lang.Object
org.hyperledger.besu.plugin.data.PluginBlockSimulationResult

public class PluginBlockSimulationResult extends Object
This class represents the result of simulating the processing of a block.
  • Constructor Details

    • PluginBlockSimulationResult

      public PluginBlockSimulationResult(BlockHeader blockHeader, BlockBody blockBody, List<? extends TransactionReceipt> receipts, List<TransactionSimulationResult> transactionSimulationResults)
      Constructs a new BlockSimulationResult instance.
      Parameters:
      blockHeader - the block header
      blockBody - the block body
      receipts - the list of transaction receipts
      transactionSimulationResults - the list of transaction simulation results
    • PluginBlockSimulationResult

      public PluginBlockSimulationResult(BlockHeader blockHeader, BlockBody blockBody, List<? extends TransactionReceipt> receipts, List<TransactionSimulationResult> transactionSimulationResults, Optional<TrieLog> trieLog)
      Constructs a new BlockSimulationResult instance with trielog.
      Parameters:
      blockHeader - the block header
      blockBody - the block body
      receipts - the list of transaction receipts
      transactionSimulationResults - the list of transaction simulation results
      trieLog - the optional trielog
  • Method Details

    • getBlockHeader

      public BlockHeader getBlockHeader()
      Gets the block header.
      Returns:
      the block header
    • getBlockBody

      public BlockBody getBlockBody()
      Gets the block body.
      Returns:
      the block body
    • getReceipts

      public List<? extends TransactionReceipt> getReceipts()
      Gets the list of transaction receipts.
      Returns:
      the list of transaction receipts
    • getTransactionSimulationResults

      public List<TransactionSimulationResult> getTransactionSimulationResults()
      Gets the list of transaction simulation results.
      Returns:
      the list of transaction simulation results
    • getTrieLog

      public Optional<TrieLog> getTrieLog()
      Gets the trielog.
      Returns:
      the trielog