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

Method updateRwSetting

src/node/interfaces.cpp:173–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 }
172 common::SettingsValue getPersistentSetting(const std::string& name) override { return args().GetPersistentSetting(name); }
173 void updateRwSetting(const std::string& name, const common::SettingsValue& value) override
174 {
175 args().LockSettings([&](common::Settings& settings) {
176 if (value.isNull()) {
177 settings.rw_settings.erase(name);
178 } else {
179 settings.rw_settings[name] = value;
180 }
181 });
182 args().WriteSettingsFile();
183 }
184 void forceSetting(const std::string& name, const common::SettingsValue& value) override
185 {
186 args().LockSettings([&](common::Settings& settings) {

Callers 3

AddWalletSettingFunction · 0.45
RemoveWalletSettingFunction · 0.45
UpdateRwSettingFunction · 0.45

Calls 3

isNullMethod · 0.80
WriteSettingsFileMethod · 0.80
eraseMethod · 0.45

Tested by

no test coverage detected