Changeset View
Changeset View
Standalone View
Standalone View
src/chainparams.h
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | protected: | ||||
std::vector<SeedSpec6> vFixedSeeds; | std::vector<SeedSpec6> vFixedSeeds; | ||||
bool fDefaultConsistencyChecks; | bool fDefaultConsistencyChecks; | ||||
bool fRequireStandard; | bool fRequireStandard; | ||||
bool fMineBlocksOnDemand; | bool fMineBlocksOnDemand; | ||||
CCheckpointData checkpointData; | CCheckpointData checkpointData; | ||||
ChainTxData chainTxData; | ChainTxData chainTxData; | ||||
}; | }; | ||||
class CMainParams : public CChainParams { | |||||
public: | |||||
CMainParams(); | |||||
}; | |||||
class CTestNetParams : public CChainParams { | |||||
public: | |||||
CTestNetParams(); | |||||
}; | |||||
class CRegTestParams : public CChainParams { | |||||
public: | |||||
CRegTestParams(); | |||||
}; | |||||
/** | /** | ||||
* Creates and returns a std::unique_ptr<CChainParams> of the chosen chain. | * Creates and returns a std::unique_ptr<CChainParams> of the chosen chain. | ||||
* @returns a CChainParams* of the chosen chain. | * @returns a CChainParams* of the chosen chain. | ||||
* @throws a std::runtime_error if the chain is not supported. | * @throws a std::runtime_error if the chain is not supported. | ||||
*/ | */ | ||||
std::unique_ptr<CChainParams> CreateChainParams(const std::string &chain); | std::unique_ptr<CChainParams> CreateChainParams(const std::string &chain); | ||||
/** | /** | ||||
Show All 12 Lines |