From c4f02425eb59ef36bb99115b6e3b14b026bbdb1e Mon Sep 17 00:00:00 2001 From: Roman Krasiuk Date: Thu, 6 Jul 2023 15:21:25 +0300 Subject: [PATCH] chore(engine): warn on inconsistent pipeline (#3623) --- crates/consensus/beacon/src/engine/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/consensus/beacon/src/engine/mod.rs b/crates/consensus/beacon/src/engine/mod.rs index 4cc52939e..d397fcf37 100644 --- a/crates/consensus/beacon/src/engine/mod.rs +++ b/crates/consensus/beacon/src/engine/mod.rs @@ -385,6 +385,13 @@ where // If the checkpoint of any stage is less than the checkpoint of the first stage, // retrieve and return the block hash of the latest header and use it as the target. if stage_checkpoint < first_stage_checkpoint { + warn!( + target: "consensus::engine", + first_stage_checkpoint, + inconsistent_stage_id = %stage_id, + inconsistent_stage_checkpoint = stage_checkpoint, + "Pipeline sync progress is inconsistent" + ); return self.blockchain.block_hash(first_stage_checkpoint) } }