Merge branch 'unstable' of https://github.com/sigp/lighthouse into gloas-serve-envelope-rpc

This commit is contained in:
Eitan Seri- Levi
2026-03-02 23:28:45 -08:00
16 changed files with 164 additions and 24 deletions

View File

@@ -663,7 +663,18 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
.custody_context()
.as_ref()
.into();
debug!(?custody_context, "Persisting custody context to store");
// Pattern match to avoid accidentally missing fields and to ignore deprecated fields.
let CustodyContextSsz {
validator_custody_at_head,
epoch_validator_custody_requirements,
persisted_is_supernode: _,
} = &custody_context;
debug!(
validator_custody_at_head,
?epoch_validator_custody_requirements,
"Persisting custody context to store"
);
persist_custody_context::<T::EthSpec, T::HotStore, T::ColdStore>(
self.store.clone(),

View File

@@ -1083,6 +1083,11 @@ where
let cgc_change_effective_slot =
cgc_changed.effective_epoch.start_slot(E::slots_per_epoch());
beacon_chain.update_data_column_custody_info(Some(cgc_change_effective_slot));
// Persist change to disk.
beacon_chain
.persist_custody_context()
.map_err(|e| format!("Failed writing updated CGC: {e:?}"))?;
}
info!(