-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extract ExecutionOutput, DoGetExecutionOutput
1. put ExecutionOutput under executor-types; next is to make StateComputeResult a combination of ExecutionOutput + StateCheckpointOutput + LedgerUpdateOutput 2. leave the algorithm in the executor crate, creating DoGetExecutionOutput
- Loading branch information
Showing
17 changed files
with
141 additions
and
147 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright © Aptos Foundation | ||
// Parts of the project are originally copyright © Meta Platforms, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#![forbid(unsafe_code)] | ||
|
||
use aptos_storage_interface::cached_state_view::StateCache; | ||
use aptos_types::transaction::{block_epilogue::BlockEndInfo, Transaction, TransactionOutput}; | ||
|
||
pub struct ExecutionOutput { | ||
/// Input transactions. | ||
pub transactions: Vec<Transaction>, | ||
/// Raw VM output. | ||
pub transaction_outputs: Vec<TransactionOutput>, | ||
/// Carries the frozen base state view, so all in-mem nodes involved won't drop before the | ||
/// execution result is processed; as well as all the accounts touched during execution, together | ||
/// with their proofs. | ||
pub state_cache: StateCache, | ||
/// Optional StateCheckpoint payload | ||
pub block_end_info: Option<BlockEndInfo>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.