5#include <bitcoin-build-config.h>
38 settings.setValue(
"nDatabaseCache", 600);
39 settings.setValue(
"nThreadsScriptVerif", 12);
43 settings.setValue(
"fUseProxy",
true);
44 settings.setValue(
"addrProxy",
"proxy:123");
45 settings.setValue(
"fUseSeparateProxyTor",
true);
46 settings.setValue(
"addrSeparateProxyTor",
"onion:234");
74 std::string
default_warning =
strprintf(
"This file is automatically generated and updated by %s. Please do not edit this file while the node "
75 "is running, as any changes might be ignored or overwritten.",
77 QCOMPARE(std::string(std::istreambuf_iterator<char>(file), std::istreambuf_iterator<char>()).
c_str(),
"{\n"
79 " \"dbcache\": \"600\",\n"
80 " \"listen\": false,\n"
81 " \"onion\": \"onion:234\",\n"
83 " \"proxy\": \"proxy:123\",\n"
84 " \"prune\": \"2861\"\n"
94 settings.forced_settings.erase(
"prune");
95 settings.rw_settings[
"prune"] = 3814;
101 settings.rw_settings.erase(
"prune");
113 s.forced_settings.erase(
"listen");
114 s.forced_settings.erase(
"listenonion");
120 settings.setValue(
"fListen",
false);
125 const bool expected{
false};
143 QString filter =
QString(
"Partially Signed Transaction (Binary) (*.psbt)");
146 filter =
QString(
"Image (*.png *.jpg)");
fs::path GetDataDirNet() const
Get data directory path with appended network identifier.
void LockSettings(Fn &&fn)
Access settings with lock held.
void ClearPathCache()
Clear cached directory paths.
bool IsArgSet(const std::string &strArg) const
Return true if the given argument has been manually set.
bool WriteSettingsFile(std::vector< std::string > *errors=nullptr, bool backup=false) const
Write settings file or backup settings file.
bool GetBoolArg(const std::string &strArg, bool fDefault) const
Return boolean argument or default value.
common::Settings m_previous_settings
OptionTests(interfaces::Node &node)
interfaces::Node & m_node
void parametersInteraction()
Interface from Qt to configuration data structure for Bitcoin client.
Top-level interface for a bitcoin node (bitcoind process).
bool AppInitParameterInteraction(const ArgsManager &args)
Initialization: parameter interaction.
QString ExtractFirstSuffixFromFilter(const QString &filter)
Extract first suffix from filter pattern "Description (*.foo)" or "Description (*....
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.