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

Method resetSettings

src/node/interfaces.cpp:194–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 });
193 }
194 void resetSettings() override
195 {
196 args().WriteSettingsFile(/*errors=*/nullptr, /*backup=*/true);
197 args().LockSettings([&](common::Settings& settings) {
198 settings.rw_settings.clear();
199 });
200 args().WriteSettingsFile();
201 }
202 void mapPort(bool enable) override { StartMapPort(enable); }
203 std::optional<Proxy> getProxy(Network net) override { return GetProxy(net); }
204 size_t getNodeCount(ConnectionDirection flags) override

Callers 1

ResetMethod · 0.80

Calls 2

WriteSettingsFileMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected