mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-21 23:08:23 +00:00
Convert epochs_per_blob_prune to Epoch once
This commit is contained in:
@@ -1722,9 +1722,9 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
|
||||
};
|
||||
|
||||
if !force {
|
||||
let epochs_per_blob_prune =
|
||||
Epoch::new(self.get_config().epochs_per_blob_prune * E::slots_per_epoch());
|
||||
if blob_info.last_pruned_epoch + epochs_per_blob_prune > blob_info.next_epoch_to_prune {
|
||||
if blob_info.last_pruned_epoch + self.get_config().epochs_per_blob_prune
|
||||
> blob_info.next_epoch_to_prune
|
||||
{
|
||||
info!(self.log, "Blobs sidecars are pruned");
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user