mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-22 22:34:45 +00:00
Squash merge of 3565
Squashed commit of the following: commita4960ebfd7Author: Michael Sproul <michael@sigmaprime.io> Date: Mon Sep 12 12:10:23 2022 +1000 Clippy commitb28e8d0848Author: Michael Sproul <michael@sigmaprime.io> Date: Mon Sep 12 11:41:45 2022 +1000 Add flag to disable prune on startup commitde775d6aa5Author: Michael Sproul <michael@sigmaprime.io> Date: Mon Sep 12 11:19:21 2022 +1000 Fix and update beacon chain tests commit2289b20bcaAuthor: Michael Sproul <michael@sigmaprime.io> Date: Fri Sep 9 17:40:21 2022 +1000 Implement DB manager command commitd5adc2ebc5Author: Michael Sproul <michael@sigmaprime.io> Date: Fri Sep 9 12:56:27 2022 +1000 Implement on-demand pruning operation commit69d54741c1Author: Michael Sproul <michael@sigmaprime.io> Date: Thu Sep 8 16:25:04 2022 +1000 Delete finalized exec payloads while running
This commit is contained in:
@@ -266,6 +266,13 @@ where
|
||||
|
||||
self.genesis_time = Some(genesis_state.genesis_time());
|
||||
|
||||
// Prune finalized execution payloads.
|
||||
if store.get_config().prune_payloads_on_init {
|
||||
store
|
||||
.try_prune_execution_payloads(false)
|
||||
.map_err(|e| format!("Error pruning execution payloads: {e:?}"))?;
|
||||
}
|
||||
|
||||
self.op_pool = Some(
|
||||
store
|
||||
.get_item::<PersistedOperationPool<TEthSpec>>(&OP_POOL_DB_KEY)
|
||||
|
||||
Reference in New Issue
Block a user