use serde_derive::{Deserialize, Serialize}; use types::Checkpoint; #[derive(Debug, PartialEq, Eq, Clone, Deserialize, Serialize)] pub struct ChainConfig { /// Maximum number of slots to skip when importing a consensus message (e.g., block, /// attestation, etc). /// /// If `None`, there is no limit. pub import_max_skip_slots: Option, /// A user-input `Checkpoint` that must exist in the beacon chain's sync path. /// /// If `None`, there is no weak subjectivity verification. pub weak_subjectivity_checkpoint: Option, } impl Default for ChainConfig { fn default() -> Self { Self { import_max_skip_slots: None, weak_subjectivity_checkpoint: None, } } }