remove deprecated startdiff command line flag

This commit is contained in:
cryptonote-social 2020-08-17 19:17:20 -07:00
parent 5ee381c3e3
commit 827030daed
2 changed files with 1 additions and 6 deletions

View File

@ -28,9 +28,6 @@ var (
exclude = flag.String("exclude", "", "pause mining during these hours, e.g. -exclude=11-16 will pause mining between 11am and 4pm")
config = flag.String("config", "", "advanced pool configuration options, e.g. start_diff=1000;donate=1.0")
wallet = flag.String("wallet", "", "your wallet id. only specify this when establishing a new username, or specifying a 'secure' config change such as a change in donation amount")
// Deprecated:
startDiff = flag.Int("start_diff", 0, "a starting difficulty value for the pool")
)
func MultiMain(s ScreenStater, agent string) {
@ -128,7 +125,6 @@ func MultiMain(s ScreenStater, agent string) {
Saver: *saver,
ExcludeHrStart: hr1,
ExcludeHrEnd: hr2,
StartDiff: *startDiff,
UseTLS: *tls,
AdvancedConfig: *config,
}

View File

@ -40,7 +40,6 @@ type MinerConfig struct {
Agent string
Saver bool
ExcludeHrStart, ExcludeHrEnd int
StartDiff int // deprecated, use AdvancedConfig instead
UseTLS bool
AdvancedConfig string
}
@ -155,7 +154,7 @@ func printStats() {
if s.RecentHashrate < 0 {
crylog.Info("Current Hashrate : --calculating--")
} else {
crylog.Info("Current Hashrate :", strconv.FormatFloat(s.RecentHashrate, 'f', 2, 64))
crylog.Info("Current Hashrate :", strconv.FormatFloat(s.RecentHashrate, 'f', 2, 64))
}
crylog.Info("Hashrate since inception :", strconv.FormatFloat(s.Hashrate, 'f', 2, 64))
crylog.Info("Threads :", s.Threads)