From 06f6177b2cdfa5ebb32592c3e1274efacb1ab428 Mon Sep 17 00:00:00 2001 From: dapplion <35266934+dapplion@users.noreply.github.com> Date: Wed, 25 Dec 2024 02:38:39 +0800 Subject: [PATCH] Backwards compatible PersistedBeaconChain --- beacon_node/beacon_chain/src/persisted_beacon_chain.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/beacon_node/beacon_chain/src/persisted_beacon_chain.rs b/beacon_node/beacon_chain/src/persisted_beacon_chain.rs index 0a85c2cdfb..b055dd2295 100644 --- a/beacon_node/beacon_chain/src/persisted_beacon_chain.rs +++ b/beacon_node/beacon_chain/src/persisted_beacon_chain.rs @@ -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)] +pub struct SszHeadTracker { + roots: Vec, + slots: Vec, } impl StoreItem for PersistedBeaconChain {