Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions crates/engine/src/future/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@ type BlockImportFuture = Pin<
>,
>;

// A boolean type indicating if the L1 consolidation job resulted in a reorg.
type IsReorg = bool;

/// A future that represents an L1 consolidation job.
type L1ConsolidationFuture =
Pin<Box<dyn Future<Output = Result<(BlockInfo, bool, BatchInfo), EngineDriverError>> + Send>>;
type L1ConsolidationFuture = Pin<
Box<dyn Future<Output = Result<(BlockInfo, IsReorg, BatchInfo), EngineDriverError>> + Send>,
>;

/// A future that represents a payload building job.
type PayloadBuildingJobFuture =
Expand Down Expand Up @@ -197,7 +201,7 @@ async fn handle_payload_attributes<EC, P>(
safe_block_info: BlockInfo,
mut fcs: AlloyForkchoiceState,
payload_attributes: ScrollPayloadAttributesWithBatchInfo,
) -> Result<(BlockInfo, bool, BatchInfo), EngineDriverError>
) -> Result<(BlockInfo, IsReorg, BatchInfo), EngineDriverError>
where
EC: ScrollEngineApi + Unpin + Send + Sync + 'static,
P: ExecutionPayloadProvider + Unpin + Send + Sync + 'static,
Expand Down