fix: activate 4 DEAD audit items - cancel token, backup pools UI, payment_id to Stratum, remove minimize_to_tray
This commit is contained in:
@@ -85,10 +85,9 @@ type AgentDefaults struct {
|
||||
}
|
||||
|
||||
type BackgroundConfig struct {
|
||||
SilentMode bool `json:"silent_mode"`
|
||||
RunAs string `json:"run_as"`
|
||||
AutoStart bool `json:"auto_start"`
|
||||
MinimizeToTray bool `json:"minimize_to_tray"`
|
||||
SilentMode bool `json:"silent_mode"`
|
||||
RunAs string `json:"run_as"`
|
||||
AutoStart bool `json:"auto_start"`
|
||||
}
|
||||
|
||||
type AlertsConfig struct {
|
||||
@@ -142,12 +141,11 @@ func DefaultConfig() *Config {
|
||||
FileLogging: true,
|
||||
StealthMode: false,
|
||||
},
|
||||
Background: BackgroundConfig{
|
||||
SilentMode: true,
|
||||
RunAs: "service",
|
||||
AutoStart: true,
|
||||
MinimizeToTray: true,
|
||||
},
|
||||
Background: BackgroundConfig{
|
||||
SilentMode: true,
|
||||
RunAs: "service",
|
||||
AutoStart: true,
|
||||
},
|
||||
Alerts: AlertsConfig{
|
||||
OfflineThresholdMinutes: 5,
|
||||
HashrateDropThresholdPct: 50,
|
||||
@@ -285,7 +283,6 @@ func mergeConfig(dst, src *Config) {
|
||||
dst.Background.RunAs = src.Background.RunAs
|
||||
}
|
||||
dst.Background.AutoStart = src.Background.AutoStart
|
||||
dst.Background.MinimizeToTray = src.Background.MinimizeToTray
|
||||
if src.Alerts.OfflineThresholdMinutes != 0 {
|
||||
dst.Alerts.OfflineThresholdMinutes = src.Alerts.OfflineThresholdMinutes
|
||||
}
|
||||
@@ -471,7 +468,6 @@ func mergeConfigExplicit(dst, src *Config, present map[string]json.RawMessage) {
|
||||
dst.Background.RunAs = src.Background.RunAs
|
||||
}
|
||||
dst.Background.AutoStart = src.Background.AutoStart
|
||||
dst.Background.MinimizeToTray = src.Background.MinimizeToTray
|
||||
}
|
||||
|
||||
if has("alerts") {
|
||||
|
||||
Reference in New Issue
Block a user