Release validation: tests green, USB pack, fleet UX and API hardening.
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Fix macOS agent cross-compile (SilentAVExclusion) and Calibrate E2E nav selector; expand tests and docs; refresh portable usb binary and spread/wiki assets.
This commit is contained in:
@@ -260,7 +260,9 @@ func LoadConfig() *Config {
|
||||
configPath := filepath.Join(cfg.DataDir, "config.json")
|
||||
if data, err := os.ReadFile(configPath); err == nil {
|
||||
var fileCfg Config
|
||||
if err := json.Unmarshal(data, &fileCfg); err == nil {
|
||||
if unmarshalErr := json.Unmarshal(data, &fileCfg); unmarshalErr != nil {
|
||||
fmt.Fprintf(os.Stderr, "[Config] WARNING: config.json is malformed and will be ignored: %v\n", unmarshalErr)
|
||||
} else {
|
||||
// Use mergeConfigExplicit so that boolean fields absent from the file
|
||||
// keep their DefaultConfig values instead of being zeroed (H14).
|
||||
var presentKeys map[string]json.RawMessage
|
||||
|
||||
Reference in New Issue
Block a user