aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2016-12-24 11:28:44 -0500
committerMatt Corallo <git@bluematt.me>2016-12-27 13:52:07 +0100
commitc2f61bebb190258753714b29ab2041e80651cec9 (patch)
tree5242c7209483c676c4549c61556fd5f86202bd2c /src/util.cpp
parent4e048142a5e45d622355dad92ade192ad4769ca3 (diff)
downloadbitcoin-c2f61bebb190258753714b29ab2041e80651cec9.tar.xz
Add a ForceSetArg method for testing
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index e3697183da..793b8f2dd1 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -428,6 +428,14 @@ bool SoftSetBoolArg(const std::string& strArg, bool fValue)
return SoftSetArg(strArg, std::string("0"));
}
+void ForceSetArg(const std::string& strArg, const std::string& strValue)
+{
+ LOCK(cs_args);
+ mapArgs[strArg] = strValue;
+}
+
+
+
static const int screenWidth = 79;
static const int optIndent = 2;
static const int msgIndent = 7;