Skip to content

Commit

Permalink
do not crash when can't find canonical notification in WAL
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Oct 1, 2024
1 parent 54e57d3 commit 14ef5d4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/exex/exex/src/notifications.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,8 @@ where
let Some(notification) =
self.wal_handle.get_committed_notification_by_block_hash(&self.exex_head.block.hash)?
else {
return Err(eyre::eyre!(
"Could not find notification for block hash {:?} in the WAL",
self.exex_head.block.hash
))
debug!(target: "exex::notifications", exex_head = ?self.exex_head, "Could not find notification for ExEx head in the WAL");
return Ok(None)
};

// Update the head block hash to the parent hash of the first committed block.
Expand Down

0 comments on commit 14ef5d4

Please sign in to comment.