aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2019-08-24 22:31:56 +0200
committerSjors Provoost <sjors@sprovoost.nl>2019-08-24 22:36:11 +0200
commit1bccf6a52d7fc08d8f605cfb2edc3277ec299c72 (patch)
treeef5eea44bb4217a85dd4d9abdabdcddad71b444a /src/interfaces
parent3ca514ddb77253042877d1a72dfd3021c3de2812 (diff)
downloadbitcoin-1bccf6a52d7fc08d8f605cfb2edc3277ec299c72.tar.xz
[node] add forceSetArg to interface
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/node.cpp1
-rw-r--r--src/interfaces/node.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaces/node.cpp b/src/interfaces/node.cpp
index fc49817502..3a9ea9f3e3 100644
--- a/src/interfaces/node.cpp
+++ b/src/interfaces/node.cpp
@@ -60,6 +60,7 @@ public:
return gArgs.ParseParameters(argc, argv, error);
}
bool readConfigFiles(std::string& error) override { return gArgs.ReadConfigFiles(error, true); }
+ void forceSetArg(const std::string& arg, const std::string& value) override { gArgs.ForceSetArg(arg, value); }
bool softSetArg(const std::string& arg, const std::string& value) override { return gArgs.SoftSetArg(arg, value); }
bool softSetBoolArg(const std::string& arg, bool value) override { return gArgs.SoftSetBoolArg(arg, value); }
void selectParams(const std::string& network) override { SelectParams(network); }
diff --git a/src/interfaces/node.h b/src/interfaces/node.h
index b93b52c5cc..649c0568e2 100644
--- a/src/interfaces/node.h
+++ b/src/interfaces/node.h
@@ -44,6 +44,9 @@ public:
//! Set command line arguments.
virtual bool parseParameters(int argc, const char* const argv[], std::string& error) = 0;
+ //! Set a command line argument
+ virtual void forceSetArg(const std::string& arg, const std::string& value) = 0;
+
//! Set a command line argument if it doesn't already have a value
virtual bool softSetArg(const std::string& arg, const std::string& value) = 0;