Skip to content

Commit 7a47d44

Browse files
committed
fixes after merge
1 parent dfb465c commit 7a47d44

File tree

2 files changed

+4
-44
lines changed

2 files changed

+4
-44
lines changed

crates/engine/src/error.rs

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -37,43 +37,3 @@ impl EngineError {
3737
Self::FcsError(FcsError::FinalizedBlockNumberNotIncreasing)
3838
}
3939
}
40-
41-
/// The error type for the fork choice state.
42-
#[derive(Debug, thiserror::Error)]
43-
pub enum FcsError {
44-
/// No update was provided for head, safe or finalized.
45-
#[error("No update provided for head, safe or finalized")]
46-
NoUpdateProvided,
47-
/// Finalized block number not increasing.
48-
#[error("Finalized block number not increasing")]
49-
FinalizedBlockNumberNotIncreasing,
50-
/// Head block number cannot be below safe block number.
51-
#[error("Safe block number can not be below the head block number")]
52-
HeadBelowSafe,
53-
/// Safe block number cannot be below finalized block number.
54-
#[error("Safe block number can not be below the finalized block number")]
55-
SafeBelowFinalized,
56-
}
57-
58-
/// The error type for the Engine.
59-
#[derive(Debug, thiserror::Error)]
60-
pub enum EngineError {
61-
/// An error occurred in the fork choice state.
62-
#[error("Fork choice state error: {0}")]
63-
FcsError(#[from] FcsError),
64-
/// An error occurred in the transport layer.
65-
#[error("Transport error: {0}")]
66-
TransportError(#[from] scroll_alloy_provider::ScrollEngineApiError),
67-
}
68-
69-
impl EngineError {
70-
/// Creates a new [`EngineError`] for a [`FcsError::NoUpdateProvided`].
71-
pub const fn fcs_no_update_provided() -> Self {
72-
Self::FcsError(FcsError::NoUpdateProvided)
73-
}
74-
75-
/// Creates a new [`EngineError`] for a [`FcsError::FinalizedBlockNumberNotIncreasing`].
76-
pub const fn fcs_finalized_block_number_not_increasing() -> Self {
77-
Self::FcsError(FcsError::FinalizedBlockNumberNotIncreasing)
78-
}
79-
}

crates/node/tests/e2e.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ async fn shutdown_consolidates_most_recent_batch_on_startup() -> eyre::Result<()
10301030
if let Some(ChainOrchestratorEvent::BlockConsolidated(consolidation_outcome)) =
10311031
rnm_events.next().await
10321032
{
1033-
break *consolidation_outcome.block_info();
1033+
break consolidation_outcome.block_info().clone();
10341034
}
10351035
};
10361036

@@ -1049,7 +1049,7 @@ async fn shutdown_consolidates_most_recent_batch_on_startup() -> eyre::Result<()
10491049
if let Some(ChainOrchestratorEvent::BlockConsolidated(consolidation_outcome)) =
10501050
rnm_events.next().await
10511051
{
1052-
assert!(consolidation_outcome.block_info().number == i);
1052+
assert!(consolidation_outcome.block_info().block_info.number == i);
10531053
break;
10541054
}
10551055
}
@@ -1263,7 +1263,7 @@ async fn can_handle_batch_revert() -> eyre::Result<()> {
12631263
if let Some(ChainOrchestratorEvent::BlockConsolidated(consolidation_outcome)) =
12641264
rnm_events.next().await
12651265
{
1266-
if consolidation_outcome.block_info().number == 4 {
1266+
if consolidation_outcome.block_info().block_info.number == 4 {
12671267
break
12681268
}
12691269
}
@@ -1277,7 +1277,7 @@ async fn can_handle_batch_revert() -> eyre::Result<()> {
12771277
if let Some(ChainOrchestratorEvent::BlockConsolidated(consolidation_outcome)) =
12781278
rnm_events.next().await
12791279
{
1280-
if consolidation_outcome.block_info().number == 46 {
1280+
if consolidation_outcome.block_info().block_info.number == 46 {
12811281
break
12821282
}
12831283
}

0 commit comments

Comments
 (0)