mirror of
https://github.com/cryptonote-social/csminer.git
synced 2024-09-11 05:35:23 +03:00
remove deprecated startdiff command line flag
This commit is contained in:
parent
5ee381c3e3
commit
827030daed
@ -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,
|
||||
}
|
||||
|
3
miner.go
3
miner.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user