Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored and calmbeing committed Mar 16, 2023
1 parent 2968d18 commit 3f3372e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions eth/stagedsync/exec3.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,10 @@ func ExecV3(ctx context.Context,
case <-pruneEvery.C:
if rs.SizeEstimate() < commitThreshold {
if agg.CanPrune(tx) {
log.Warn("Aggressive prune")
if err = agg.Prune(ctx, ethconfig.HistoryV3AggregationStep/10); err != nil { // prune part of retired data, before commit
panic(err)
}
} else {
log.Warn("No aggressive prune")
if err = agg.Flush(ctx, tx); err != nil {
return err
}
Expand Down

0 comments on commit 3f3372e

Please sign in to comment.