Trait executor_types::ChunkExecutor
source · pub trait ChunkExecutor: Send + Sync {
// Required method
fn execute_and_commit_chunk(
&self,
txn_list_with_proof: TransactionListWithProof,
verified_target_li: LedgerInfoWithSignatures,
epoch_change_li: Option<LedgerInfoWithSignatures>
) -> Result<Vec<ContractEvent>>;
}
Required Methods§
sourcefn execute_and_commit_chunk(
&self,
txn_list_with_proof: TransactionListWithProof,
verified_target_li: LedgerInfoWithSignatures,
epoch_change_li: Option<LedgerInfoWithSignatures>
) -> Result<Vec<ContractEvent>>
fn execute_and_commit_chunk( &self, txn_list_with_proof: TransactionListWithProof, verified_target_li: LedgerInfoWithSignatures, epoch_change_li: Option<LedgerInfoWithSignatures> ) -> Result<Vec<ContractEvent>>
Verifies the transactions based on the provided proofs and ledger info. If the transactions are valid, executes them and commits immediately if execution results match the proofs. Returns a vector of reconfiguration events in the chunk