From 63ca3bfb296273aa40bbd72d20ecf13b3557f342 Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Tue, 24 Jan 2023 09:41:23 +0100 Subject: [PATCH] Prune from highest data availability boundary --- beacon_node/beacon_chain/src/migrate.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/beacon_node/beacon_chain/src/migrate.rs b/beacon_node/beacon_chain/src/migrate.rs index cf4dd7216..51cd88434 100644 --- a/beacon_node/beacon_chain/src/migrate.rs +++ b/beacon_node/beacon_chain/src/migrate.rs @@ -345,7 +345,13 @@ impl, Cold: ItemStore> BackgroundMigrator best, (Notification::PruneBlobs(_), Notification::Finalization(_)) => other, - (Notification::PruneBlobs(_), Notification::PruneBlobs(_)) => best, + (Notification::PruneBlobs(dab1), Notification::PruneBlobs(dab2)) => { + if dab2 > dab2 { + other + } else { + best + } + } }); match notif {