@@ -68,7 +68,9 @@ SettingsValue GetSetting(const Settings& settings,
68
68
// precedence over early settings, but for backwards compatibility in
69
69
// the config file the precedence is reversed for all settings except
70
70
// chain name settings.
71
- const bool reverse_precedence = (source == Source::CONFIG_FILE_NETWORK_SECTION || source == Source::CONFIG_FILE_DEFAULT_SECTION) && !get_chain_name;
71
+ const bool reverse_precedence =
72
+ (source == Source::CONFIG_FILE_NETWORK_SECTION || source == Source::CONFIG_FILE_DEFAULT_SECTION) &&
73
+ !get_chain_name;
72
74
73
75
// Weird behavior preserved for backwards compatibility: Negated
74
76
// -regtest and -testnet arguments which you would expect to override
@@ -78,7 +80,10 @@ SettingsValue GetSetting(const Settings& settings,
78
80
const bool skip_negated_command_line = get_chain_name;
79
81
80
82
// Ignore settings in default config section if requested.
81
- if (ignore_default_section_config && source == Source::CONFIG_FILE_DEFAULT_SECTION && !never_ignore_negated_setting) return ;
83
+ if (ignore_default_section_config && source == Source::CONFIG_FILE_DEFAULT_SECTION &&
84
+ !never_ignore_negated_setting) {
85
+ return ;
86
+ }
82
87
83
88
// Skip negated command line settings.
84
89
if (skip_negated_command_line && span.last_negated ()) return ;
@@ -111,7 +116,9 @@ std::vector<SettingsValue> GetSettingsList(const Settings& settings,
111
116
// value is followed by non-negated value, in which case config file
112
117
// settings will be brought back from the dead (but earlier command
113
118
// line settings will still be ignored).
114
- const bool add_zombie_config_values = (source == Source::CONFIG_FILE_NETWORK_SECTION || source == Source::CONFIG_FILE_DEFAULT_SECTION) && !prev_negated_empty;
119
+ const bool add_zombie_config_values =
120
+ (source == Source::CONFIG_FILE_NETWORK_SECTION || source == Source::CONFIG_FILE_DEFAULT_SECTION) &&
121
+ !prev_negated_empty;
115
122
116
123
// Ignore settings in default config section if requested.
117
124
if (ignore_default_section_config && source == Source::CONFIG_FILE_DEFAULT_SECTION) return ;
0 commit comments