mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-10 21:11:20 +00:00
snapshots: auto fix
This commit is contained in:
parent
c4879dd4b8
commit
32467007c1
@ -240,7 +240,7 @@ func doRetireCommand(cliCtx *cli.Context) error {
|
||||
snapshots := snapshotsync.NewRoSnapshots(cfg, snapshotDir)
|
||||
snapshots.Reopen()
|
||||
|
||||
br := snapshotsync.NewBlockRetire(runtime.NumCPU()/2, tmpDir, snapshots, chainDB, nil, nil)
|
||||
br := snapshotsync.NewBlockRetire(runtime.NumCPU()-1, tmpDir, snapshots, chainDB, nil, nil)
|
||||
|
||||
for i := from; i < to; i += every {
|
||||
br.RetireBlocksInBackground(ctx, i, i+every, *chainID, log.LvlInfo)
|
||||
|
Loading…
Reference in New Issue
Block a user