mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
Remove duplicate flags (#9199)
This fixes the snapshot uploader start as flags have been moved to default
This commit is contained in:
parent
f690301c03
commit
641f53e9d2
@ -94,12 +94,13 @@ var snapshotCommand = cli.Command{
|
||||
Name: "uploader",
|
||||
Action: doUploaderCommand,
|
||||
Usage: "run erigon in snapshot upload mode (no execution)",
|
||||
Flags: uploaderCommandFlags([]cli.Flag{
|
||||
&SnapshotVersionFlag,
|
||||
&erigoncli.UploadLocationFlag,
|
||||
&erigoncli.UploadFromFlag,
|
||||
&erigoncli.FrozenBlockLimitFlag,
|
||||
}),
|
||||
Flags: joinFlags(erigoncli.DefaultFlags,
|
||||
[]cli.Flag{
|
||||
&SnapshotVersionFlag,
|
||||
&erigoncli.UploadLocationFlag,
|
||||
&erigoncli.UploadFromFlag,
|
||||
&erigoncli.FrozenBlockLimitFlag,
|
||||
}),
|
||||
Before: func(context *cli.Context) error {
|
||||
erigoncli.SyncLoopBreakAfterFlag.Value = "Senders"
|
||||
erigoncli.SyncLoopBlockLimitFlag.Value = 100000
|
||||
@ -645,14 +646,6 @@ func doRetireCommand(cliCtx *cli.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func uploaderCommandFlags(flags []cli.Flag) []cli.Flag {
|
||||
return joinFlags(erigoncli.DefaultFlags, flags, []cli.Flag{
|
||||
&erigoncli.SyncLoopBreakAfterFlag,
|
||||
&erigoncli.SyncLoopBlockLimitFlag,
|
||||
&erigoncli.SyncLoopPruneLimitFlag,
|
||||
})
|
||||
}
|
||||
|
||||
func doUploaderCommand(cliCtx *cli.Context) error {
|
||||
var logger log.Logger
|
||||
var err error
|
||||
|
Loading…
Reference in New Issue
Block a user