mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Refactor: One CBaseChainParams should be enough
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user