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(org.hyperledger.besu.plugin.data.BlockHeader blockHeader, org.hyperledger.besu.plugin.data.BlockBody blockBody, List<? extends org.hyperledger.besu.plugin.data.TransactionReceipt> receipts, List<TransactionSimulationResult> transactionSimulationResults)
      Constructs a new PluginBlockSimulationResult 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(org.hyperledger.besu.plugin.data.BlockHeader blockHeader, org.hyperledger.besu.plugin.data.BlockBody blockBody, List<? extends org.hyperledger.besu.plugin.data.TransactionReceipt> receipts, List<TransactionSimulationResult> transactionSimulationResults, Optional<org.hyperledger.besu.plugin.services.trielogs.TrieLog> trieLog)
      Constructs a new PluginBlockSimulationResult instance with a trie log.
      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 org.hyperledger.besu.plugin.data.BlockHeader getBlockHeader()
      Gets the block header.
      Returns:
      the block header
    • getBlockBody

      public org.hyperledger.besu.plugin.data.BlockBody getBlockBody()
      Gets the block body.
      Returns:
      the block body
    • getReceipts

      public List<? extends org.hyperledger.besu.plugin.data.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<org.hyperledger.besu.plugin.services.trielogs.TrieLog> getTrieLog()
      Gets the trielog.
      Returns:
      the trielog