diff --git a/beacon_node/beacon_chain/src/beacon_chain.rs b/beacon_node/beacon_chain/src/beacon_chain.rs index 02c1d2e97f..a58fc63e7a 100644 --- a/beacon_node/beacon_chain/src/beacon_chain.rs +++ b/beacon_node/beacon_chain/src/beacon_chain.rs @@ -630,6 +630,7 @@ impl BeaconChain { PersistedBeaconChain { _canonical_head_block_root: DUMMY_CANONICAL_HEAD_BLOCK_ROOT, genesis_block_root, + ssz_head_tracker: <_>::default(), } } diff --git a/beacon_node/beacon_chain/src/persisted_beacon_chain.rs b/beacon_node/beacon_chain/src/persisted_beacon_chain.rs index 0a85c2cdfb..d834bd1af6 100644 --- a/beacon_node/beacon_chain/src/persisted_beacon_chain.rs +++ b/beacon_node/beacon_chain/src/persisted_beacon_chain.rs @@ -1,7 +1,7 @@ use ssz::{Decode, Encode}; use ssz_derive::{Decode, Encode}; use store::{DBColumn, Error as StoreError, StoreItem}; -use types::Hash256; +use types::{Hash256, Slot}; /// Dummy value to use for the canonical head block root, see below. pub const DUMMY_CANONICAL_HEAD_BLOCK_ROOT: Hash256 = Hash256::repeat_byte(0xff); @@ -17,6 +17,15 @@ pub struct PersistedBeaconChain { /// https://github.com/sigp/lighthouse/issues/1784 pub _canonical_head_block_root: Hash256, pub genesis_block_root: Hash256, + /// DEPRECATED + pub ssz_head_tracker: SszHeadTracker, +} + +/// DEPRECATED +#[derive(Encode, Decode, Clone, Default)] +pub struct SszHeadTracker { + roots: Vec, + slots: Vec, } impl StoreItem for PersistedBeaconChain {