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(BlockHeader blockHeader, BlockBody blockBody, List<? extends TransactionReceipt> receipts, List<TransactionSimulationResult> transactionSimulationResults) Constructs a new BlockSimulationResult instance.PluginBlockSimulationResult(BlockHeader blockHeader, BlockBody blockBody, List<? extends TransactionReceipt> receipts, List<TransactionSimulationResult> transactionSimulationResults, Optional<TrieLog> trieLog) Constructs a new BlockSimulationResult instance with trielog. -
Method Summary
Modifier and TypeMethodDescriptionGets the block body.Gets the block header.List<? extends TransactionReceipt> Gets the list of transaction receipts.Gets the list of transaction simulation results.Gets the trielog.
-
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 headerblockBody- the block bodyreceipts- the list of transaction receiptstransactionSimulationResults- 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 headerblockBody- the block bodyreceipts- the list of transaction receiptstransactionSimulationResults- the list of transaction simulation resultstrieLog- the optional trielog
-
-
Method Details
-
getBlockHeader
-
getBlockBody
-
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
-