From 7c2eb96bc503b080b6fbd2eee6887959f3cd831c Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Tue, 27 Jun 2023 15:06:43 +1000 Subject: [PATCH] Set epochs per migration to 1 Workaround for #4236 --- beacon_node/beacon_chain/src/migrate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_node/beacon_chain/src/migrate.rs b/beacon_node/beacon_chain/src/migrate.rs index 88c3c1c222..36be181289 100644 --- a/beacon_node/beacon_chain/src/migrate.rs +++ b/beacon_node/beacon_chain/src/migrate.rs @@ -28,7 +28,7 @@ const COMPACTION_FINALITY_DISTANCE: u64 = 1024; const BLOCKS_PER_RECONSTRUCTION: usize = 8192 * 4; /// Default number of epochs to wait between finalization migrations. -pub const DEFAULT_EPOCHS_PER_RUN: u64 = 4; +pub const DEFAULT_EPOCHS_PER_RUN: u64 = 1; /// The background migrator runs a thread to perform pruning and migrate state from the hot /// to the cold database.