Fix lint for prune blobs pr
This commit is contained in:
parent
d9eed481b7
commit
28e9f07746
@ -1784,14 +1784,13 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
|
|||||||
let margin_epochs = self.get_config().blob_prune_margin_epochs;
|
let margin_epochs = self.get_config().blob_prune_margin_epochs;
|
||||||
let end_epoch = earliest_prunable_epoch - margin_epochs;
|
let end_epoch = earliest_prunable_epoch - margin_epochs;
|
||||||
|
|
||||||
if !force {
|
if !force
|
||||||
if last_pruned_epoch.as_u64() + self.get_config().epochs_per_blob_prune
|
&& last_pruned_epoch.as_u64() + self.get_config().epochs_per_blob_prune
|
||||||
> end_epoch.as_u64()
|
> end_epoch.as_u64()
|
||||||
{
|
{
|
||||||
info!(self.log, "Blobs sidecars are pruned");
|
info!(self.log, "Blobs sidecars are pruned");
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Iterate block roots forwards from the oldest blob slot.
|
// Iterate block roots forwards from the oldest blob slot.
|
||||||
debug!(
|
debug!(
|
||||||
|
Loading…
Reference in New Issue
Block a user