mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(engine): warn on inconsistent pipeline (#3623)
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user