diff --git a/beacon-chain/db/filesystem/blob.go b/beacon-chain/db/filesystem/blob.go index 54b5d4a502cf..38a6f4be6b07 100644 --- a/beacon-chain/db/filesystem/blob.go +++ b/beacon-chain/db/filesystem/blob.go @@ -232,8 +232,6 @@ func (p blobNamer) path() string { // It deletes blobs older than currentEpoch - (retentionEpochs+bufferEpochs). // This is so that we keep a slight buffer and blobs are deleted after n+2 epochs. func (bs *BlobStorage) Prune(currentSlot primitives.Slot) error { - log.Debug("Pruning old blobs") - t := time.Now() retentionSlots, err := slots.EpochStart(bs.retentionEpochs + bufferEpochs) if err != nil { @@ -243,6 +241,8 @@ func (bs *BlobStorage) Prune(currentSlot primitives.Slot) error { return nil // Overflow would occur } + log.Debug("Pruning old blobs") + folders, err := afero.ReadDir(bs.fs, ".") if err != nil { return err