chore: add note about execute fn in docs (#5768)

This commit is contained in:
Matthias Seitz
2023-12-15 11:29:03 +01:00
committed by GitHub
parent 764c7ae26f
commit 80ddf17769

View File

@ -38,6 +38,8 @@ pub trait BlockExecutor {
) -> Result<(), BlockExecutionError>;
/// Executes the block and checks receipts.
///
/// See [execute](BlockExecutor::execute) for more details.
fn execute_and_verify_receipt(
&mut self,
block: &Block,
@ -55,6 +57,8 @@ pub trait BlockExecutor {
/// 0, and so on).
///
/// The second returned value represents the total gas used by this block of transactions.
///
/// See [execute](BlockExecutor::execute) for more details.
fn execute_transactions(
&mut self,
block: &Block,
@ -93,9 +97,9 @@ pub struct BlockExecutorStats {
/// Time needed to merge transitions and create reverts.
/// It this time transitions are applies to revm bundle state.
pub merge_transitions_duration: Duration,
/// Time needed to caclulate receipt roots.
/// Time needed to calculate receipt roots.
pub receipt_root_duration: Duration,
/// Time needed to recovere senders.
/// Time needed to recover senders.
pub sender_recovery_duration: Duration,
}