Prune from highest data availability boundary

This commit is contained in:
Emilia Hane 2023-01-24 09:41:23 +01:00
parent c50f83116e
commit 63ca3bfb29
No known key found for this signature in database
GPG Key ID: E73394F9C09206FA

View File

@ -345,7 +345,13 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> BackgroundMigrator<E, Ho
}
(Notification::Finalization(_), Notification::PruneBlobs(_)) => 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 {