aboutsummaryrefslogtreecommitdiff
path: root/src/interface
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface')
-rw-r--r--src/interface/node.cpp1
-rw-r--r--src/interface/node.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/interface/node.cpp b/src/interface/node.cpp
index 1bd7e48b05..0e6bc4a785 100644
--- a/src/interface/node.cpp
+++ b/src/interface/node.cpp
@@ -56,6 +56,7 @@ class NodeImpl : public Node
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); }
+ std::string getNetwork() override { return Params().NetworkIDString(); }
void initLogging() override { InitLogging(); }
void initParameterInteraction() override { InitParameterInteraction(); }
std::string getWarnings(const std::string& type) override { return GetWarnings(type); }
diff --git a/src/interface/node.h b/src/interface/node.h
index 606d1238e0..a31105f6f8 100644
--- a/src/interface/node.h
+++ b/src/interface/node.h
@@ -54,6 +54,9 @@ public:
//! Choose network parameters.
virtual void selectParams(const std::string& network) = 0;
+ //! Get network name.
+ virtual std::string getNetwork() = 0;
+
//! Init logging.
virtual void initLogging() = 0;