Class PluginBlockSimulationResult
java.lang.Object
org.hyperledger.besu.plugin.data.PluginBlockSimulationResult
This class represents the result of simulating the processing of a block.
-
Constructor Summary
ConstructorsConstructorDescriptionPluginBlockSimulationResult(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.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. -
Method Summary
Modifier and TypeMethodDescriptionorg.hyperledger.besu.plugin.data.BlockBodyGets the block body.org.hyperledger.besu.plugin.data.BlockHeaderGets the block header.List<? extends org.hyperledger.besu.plugin.data.TransactionReceipt> Gets the list of transaction receipts.Gets the list of transaction simulation results.Optional<org.hyperledger.besu.plugin.services.trielogs.TrieLog> Gets the trielog.
-
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 headerblockBody- the block bodyreceipts- the list of transaction receiptstransactionSimulationResults- 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 headerblockBody- the block bodyreceipts- the list of transaction receiptstransactionSimulationResults- the list of transaction simulation resultstrieLog- 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
Gets the list of transaction receipts.- Returns:
- the list of transaction receipts
-
getTransactionSimulationResults
Gets the list of transaction simulation results.- Returns:
- the list of transaction simulation results
-
getTrieLog
Gets the trielog.- Returns:
- the trielog
-