mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
"erigon snapshots retire" - doesn't see any files because version is 0 - fix (#9163)
This commit is contained in:
parent
ff92b701c3
commit
de6c1593e4
@ -87,6 +87,7 @@ var snapshotCommand = cli.Command{
|
||||
&SnapshotFromFlag,
|
||||
&SnapshotToFlag,
|
||||
&SnapshotEveryFlag,
|
||||
&SnapshotVersionFlag,
|
||||
}),
|
||||
},
|
||||
{
|
||||
@ -510,6 +511,9 @@ func doRetireCommand(cliCtx *cli.Context) error {
|
||||
to := cliCtx.Uint64(SnapshotToFlag.Name)
|
||||
every := cliCtx.Uint64(SnapshotEveryFlag.Name)
|
||||
version := uint8(cliCtx.Int(SnapshotVersionFlag.Name))
|
||||
if version != 0 {
|
||||
snapcfg.SnapshotVersion(version)
|
||||
}
|
||||
|
||||
db := dbCfg(kv.ChainDB, dirs.Chaindata).MustOpen()
|
||||
defer db.Close()
|
||||
|
Loading…
Reference in New Issue
Block a user