From e964a515c609a15846e87ba7e80046812e3e1ebd Mon Sep 17 00:00:00 2001 From: Georgy Shepelev Date: Mon, 12 Aug 2024 15:31:00 +0400 Subject: [PATCH] refactoring --- relayer/src/ethereum_checkpoints/mod.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/relayer/src/ethereum_checkpoints/mod.rs b/relayer/src/ethereum_checkpoints/mod.rs index 4ca9b630..4f398f5b 100644 --- a/relayer/src/ethereum_checkpoints/mod.rs +++ b/relayer/src/ethereum_checkpoints/mod.rs @@ -168,10 +168,15 @@ pub async fn relay(args: RelayCheckpointsArgs) { } } Ok(Err(sync_update::Error::ReplayBackRequired { .. })) => { - log::info!("Replay back within the main loop. Exiting"); + log::error!("Replay back within the main loop. Exiting"); return; } - Ok(Err(e)) => log::info!("The program failed with: {e:?}. Skipping"), + Ok(Err(e)) => { + log::info!("The program failed with: {e:?}. Skipping"); + if let sync_update::Error::NotActual = e { + slot_last = slot; + } + } Err(e) => { log::error!("{e:?}"); return;