Manual compaction endpoint backport (#7104)

Backports:
- https://github.com/sigp/lighthouse/pull/7072

To:
- https://github.com/sigp/lighthouse/issues/7039

#7103 should be merged first


  This PR introduces an endpoint that allows users to manually trigger background compaction.
This commit is contained in:
Eitan Seri-Levi
2025-03-18 00:29:12 -06:00
committed by GitHub
parent 27aabe8159
commit ed1b7689ae
3 changed files with 46 additions and 0 deletions

View File

@@ -1711,6 +1711,10 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
}
}
pub fn manually_compact_database(&self) {
self.store_migrator.process_manual_compaction();
}
pub fn manually_finalize_state(
&self,
state_root: Hash256,