Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
fix flag max-misses not defined error
Browse files Browse the repository at this point in the history
  • Loading branch information
dahn510 committed Apr 17, 2024
1 parent 357ecf0 commit 0ee04f4
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion jprov/jprovd/provider_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,22 @@ func PruneCommand() *cobra.Command {
return fs.PruneExpiredFiles()
},
}

AddTxFlagsToCmd(cmd)
cmd.Flags().Int(types.FlagPort, types.DefaultPort, "Port to host the server on.")
cmd.Flags().String(types.VersionFlag, "", "The value exposed by the version api to allow for custom deployments.")
cmd.Flags().Bool(types.HaltStraysFlag, false, "Debug flag to stop picking up strays.")
cmd.Flags().Uint16(types.FlagInterval, types.DefaultInterval, "The interval in seconds for which to check proofs. Must be >=1800 if you need a custom interval")
cmd.Flags().Uint(types.FlagThreads, types.DefaultThreads, "The amount of stray threads.")
cmd.Flags().Int(types.FlagMaxMisses, types.DefaultMaxMisses, "The amount of intervals a provider can miss their proofs before removing a file.")
cmd.Flags().Int64(types.FlagChunkSize, types.DefaultChunkSize, "The size of a single file chunk.")
cmd.Flags().Int64(types.FlagStrayInterval, types.DefaultStrayInterval, "The interval in seconds to check for new strays.")
cmd.Flags().Int(types.FlagMessageSize, types.DefaultMessageSize, "The max size of all messages in bytes to submit to the chain at one time.")
cmd.Flags().Int(types.FlagGasCap, types.DefaultGasCap, "The maximum gas to be used per message.")
cmd.Flags().Int64(types.FlagQueueInterval, types.DefaultQueueInterval, "The time, in seconds, between running a queue loop.")
cmd.Flags().String(types.FlagProviderName, "A Storage Provider", "The name to identify this provider in block explorers.")
cmd.Flags().Int64(types.FlagSleep, types.DefaultSleep, "The time, in milliseconds, before adding another proof msg to the queue.")
cmd.Flags().Bool(types.FlagDoReport, types.DefaultDoReport, "Should this provider report deals (uses gas).")

return cmd
}

Expand Down

0 comments on commit 0ee04f4

Please sign in to comment.