use super::*;
#[derive(Debug, Error)]
pub enum HeaderSyncStartError {
#[error("invalid Zakura header-sync anchor at height {anchor:?}")]
InvalidAnchor {
anchor: (block::Height, block::Hash),
},
#[error(
"Zakura header-sync anchor height {anchor_height:?} is above the verified block tip \
{verified_block_tip:?}"
)]
AnchorAboveVerifiedBlockTip {
anchor_height: block::Height,
verified_block_tip: block::Height,
},
#[error("Zakura header-sync anchor_height and anchor_hash must be configured together")]
IncompleteAnchor,
}