diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2018-03-23 17:14:39 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2018-04-04 16:52:40 -0400 |
commit | 3cab2ce5f9e159ad5a2e9ed682f28121b5248580 (patch) | |
tree | 950fa12e412b37d37e9df5e0487b70ee162c6ea6 /src/interface | |
parent | 3ec2ebcd9b4beb4277f1f4791c6acbc538784f70 (diff) |
Remove direct bitcoin calls from qt/paymentserver.cpp
Diffstat (limited to 'src/interface')
-rw-r--r-- | src/interface/node.cpp | 1 | ||||
-rw-r--r-- | src/interface/node.h | 3 |
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; |