mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 12:07:17 +00:00
save
This commit is contained in:
parent
786610df3f
commit
62125a0dc1
@ -392,6 +392,19 @@ func doRetireCommand(cliCtx *cli.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
log.Info("Prune state history")
|
||||
for i := 0; i < 1024; i++ {
|
||||
if err := db.Update(ctx, func(tx kv.RwTx) error {
|
||||
agg.SetTx(tx)
|
||||
if err = agg.Prune(ctx, ethconfig.HistoryV3AggregationStep); err != nil {
|
||||
return err
|
||||
}
|
||||
return err
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
log.Info("Work on state history snapshots")
|
||||
sem := semaphore.NewWeighted(int64(estimate.IndexSnapshot.Workers()))
|
||||
if err = agg.BuildMissedIndices(ctx, sem); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user