Skip to content

Commit

Permalink
Use <= when checking epochs per migration
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul committed Jun 29, 2023
1 parent f746b96 commit c92ccc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon_node/beacon_chain/src/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> BackgroundMigrator<E, Ho
// Do not run too frequently.
let epoch = notif.finalized_checkpoint.epoch;
let mut prev_migration = notif.prev_migration.lock();
if epoch < prev_migration.epoch + prev_migration.epochs_per_migration {
if epoch <= prev_migration.epoch + prev_migration.epochs_per_migration {
debug!(
log,
"Database consolidation deferred";
Expand Down

0 comments on commit c92ccc5

Please sign in to comment.