chore(engine): warn on inconsistent pipeline (#3623)

This commit is contained in:
Roman Krasiuk
2023-07-06 15:21:25 +03:00
committed by GitHub
parent d9dc9aac92
commit c4f02425eb

View File

@ -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)
}
}