Dash Core  0.12.2.1
P2P Digital Currency
chainparamsbase.h
Go to the documentation of this file.
1 // Copyright (c) 2014-2015 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_CHAINPARAMSBASE_H
6 #define BITCOIN_CHAINPARAMSBASE_H
7 
8 #include <string>
9 #include <vector>
10 
16 {
17 public:
19  static const std::string MAIN;
20  static const std::string TESTNET;
21  static const std::string REGTEST;
22 
23  const std::string& DataDir() const { return strDataDir; }
24  int RPCPort() const { return nRPCPort; }
25 
26 protected:
28 
29  int nRPCPort;
30  std::string strDataDir;
31 };
32 
37 void AppendParamsHelpMessages(std::string& strUsage, bool debugHelp=true);
38 
44 
45 CBaseChainParams& BaseParams(const std::string& chain);
46 
48 void SelectBaseParams(const std::string& chain);
49 
54 std::string ChainNameFromCommandLine();
55 
61 
62 #endif // BITCOIN_CHAINPARAMSBASE_H
void SelectBaseParams(const std::string &chain)
const std::string & DataDir() const
static const std::string TESTNET
void AppendParamsHelpMessages(std::string &strUsage, bool debugHelp=true)
bool AreBaseParamsConfigured()
std::string ChainNameFromCommandLine()
std::string strDataDir
const CBaseChainParams & BaseParams()
int RPCPort() const
static const std::string MAIN
static const std::string REGTEST