MCPcopy Create free account
hub / github.com/ElementsProject/elements / updateRwSetting

Method updateRwSetting

src/node/interfaces.cpp:703–713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701 return result;
702 }
703 bool updateRwSetting(const std::string& name, const util::SettingsValue& value, bool write) override
704 {
705 gArgs.LockSettings([&](util::Settings& settings) {
706 if (value.isNull()) {
707 settings.rw_settings.erase(name);
708 } else {
709 settings.rw_settings[name] = value;
710 }
711 });
712 return !write || gArgs.WriteSettingsFile();
713 }
714 void requestMempoolTransactions(Notifications& notifications) override
715 {
716 if (!m_node.mempool) return;

Callers 3

AddWalletSettingFunction · 0.80
RemoveWalletSettingFunction · 0.80
VerifyWalletsFunction · 0.80

Calls 4

LockSettingsMethod · 0.80
WriteSettingsFileMethod · 0.80
isNullMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected