MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / forceSetting

Method forceSetting

src/node/interfaces.cpp:184–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182 args().WriteSettingsFile();
183 }
184 void forceSetting(const std::string& name, const common::SettingsValue& value) override
185 {
186 args().LockSettings([&](common::Settings& settings) {
187 if (value.isNull()) {
188 settings.forced_settings.erase(name);
189 } else {
190 settings.forced_settings[name] = value;
191 }
192 });
193 }
194 void resetSettings() override
195 {
196 args().WriteSettingsFile(/*errors=*/nullptr, /*backup=*/true);

Callers 1

SetPruneTargetGBMethod · 0.80

Calls 2

isNullMethod · 0.80
eraseMethod · 0.45

Tested by

no test coverage detected