-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
34 additions
and
12 deletions.
There are no files selected for viewing
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,20 @@ | ||
//! The engine controller keeps the state of the engine. | ||
use op_alloy_protocol::L2BlockInfo; | ||
|
||
/// The engine controller. | ||
#[derive(Debug, Clone)] | ||
pub struct EngineController { | ||
/// The block head state. | ||
pub unsafe_head: L2BlockInfo, | ||
/// A cross unsafe head. | ||
pub cross_unsafe_head: L2BlockInfo, | ||
/// The pending local safe head. | ||
pub pending_local_safe_head: L2BlockInfo, | ||
/// The local safe head. | ||
pub local_safe_head: L2BlockInfo, | ||
/// Derived from L1 and cross-verified. | ||
pub safe_head: L2BlockInfo, | ||
/// The finalized safe head. | ||
pub finalized_head: L2BlockInfo, | ||
} |
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,7 @@ | ||
//! The engine module contains logic for interacting with the L2 Engine API. | ||
mod controller; | ||
pub use controller::EngineController; | ||
|
||
mod relay; | ||
pub use relay::EngineRelay; |
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