mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-27 01:33:33 +00:00
Merge branch 'unstable' of https://github.com/sigp/lighthouse into gloas-serve-envelope-rpc
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user