Skip to content

Commit 68cfec9

Browse files
apollo_l1_provider: fix log message when skipping over historic heights (#10465)
* apollo_l1_provider: reduce number of provider error variants * apollo_l1_provider: fix log message when skipping over historic heights
1 parent 3355263 commit 68cfec9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/apollo_l1_provider/src/l1_provider.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,13 +278,13 @@ impl L1Provider {
278278
return Err(L1ProviderError::Uninitialized);
279279
}
280280

281-
// TODO(guyn): this message is misleading, it checks start_height, not current_height.
282-
// TODO(guyn): maybe we should indeed ignore all blocks below current_height?
283-
// See other todo in bootstrap().
284281
if self.is_historical_height(height) {
285282
debug!(
286-
"Skipping commit block for historical height: {}, current height is higher: {}",
287-
height, self.current_height
283+
"Skipping commit block for height: {height}, it is lower than start_height: {}. \
284+
Current height is {}.",
285+
self.start_height
286+
.expect("is_historic_height returns false if start_height is not set"),
287+
self.current_height
288288
);
289289
return Ok(());
290290
}

0 commit comments

Comments
 (0)