diff --git a/src/interfaces/node.h b/src/interfaces/node.h --- a/src/interfaces/node.h +++ b/src/interfaces/node.h @@ -56,6 +56,9 @@ //! 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; diff --git a/src/interfaces/node.cpp b/src/interfaces/node.cpp --- a/src/interfaces/node.cpp +++ b/src/interfaces/node.cpp @@ -67,6 +67,7 @@ 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 { diff --git a/src/interfaces/wallet.h b/src/interfaces/wallet.h --- a/src/interfaces/wallet.h +++ b/src/interfaces/wallet.h @@ -5,11 +5,11 @@ #ifndef BITCOIN_INTERFACES_WALLET_H #define BITCOIN_INTERFACES_WALLET_H -#include // For Amount -#include // For CTxOut -#include // For CTxDestination (CKeyID and CScriptID) -#include