diff options
author | Jorge Timón <jtimon@jtimon.cc> | 2017-12-12 02:32:44 +0100 |
---|---|---|
committer | Jorge Timón <jtimon@jtimon.cc> | 2018-02-08 22:06:43 +0100 |
commit | 1687cb4a879ee6ec8c5abf20a2c92f5fe201a66b (patch) | |
tree | 892d1ccae0d6427e9e50824547935563602332af /src/chainparamsbase.h | |
parent | d405beea26c1569f46cf50ef71b376c9487ce361 (diff) |
Refactor: One CBaseChainParams should be enough
Diffstat (limited to 'src/chainparamsbase.h')
-rw-r--r-- | src/chainparamsbase.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/chainparamsbase.h b/src/chainparamsbase.h index b4d2bb4f08..2cb860380e 100644 --- a/src/chainparamsbase.h +++ b/src/chainparamsbase.h @@ -24,9 +24,10 @@ public: const std::string& DataDir() const { return strDataDir; } int RPCPort() const { return nRPCPort; } -protected: - CBaseChainParams() {} + CBaseChainParams() = delete; + CBaseChainParams(const std::string& data_dir, int rpc_port) : nRPCPort(rpc_port), strDataDir(data_dir) {} +private: int nRPCPort; std::string strDataDir; }; |