aboutsummaryrefslogtreecommitdiff
path: root/src/chainparams.h
diff options
context:
space:
mode:
authorJorge Timón <jtimon@jtimon.cc>2018-06-16 22:38:13 +0200
committerJorge Timón <jtimon@jtimon.cc>2018-09-23 22:58:54 +0200
commit6fa901fb4726ddac025d5396ecf09d047a8aa9a1 (patch)
treeefd5ec896f8f8542eeb6a5649118a22858de609d /src/chainparams.h
parent980b38f8a12130d2761d0f748db750165cfed025 (diff)
downloadbitcoin-6fa901fb4726ddac025d5396ecf09d047a8aa9a1.tar.xz
Don't edit Chainparams after initialization
Diffstat (limited to 'src/chainparams.h')
-rw-r--r--src/chainparams.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/chainparams.h b/src/chainparams.h
index 722e52ff40..19818b40af 100644
--- a/src/chainparams.h
+++ b/src/chainparams.h
@@ -80,7 +80,6 @@ public:
const std::vector<SeedSpec6>& FixedSeeds() const { return vFixedSeeds; }
const CCheckpointData& Checkpoints() const { return checkpointData; }
const ChainTxData& TxData() const { return chainTxData; }
- void UpdateVersionBitsParameters(Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout);
protected:
CChainParams() {}
@@ -107,7 +106,7 @@ protected:
* @returns a CChainParams* of the chosen chain.
* @throws a std::runtime_error if the chain is not supported.
*/
-std::unique_ptr<CChainParams> CreateChainParams(const std::string& chain);
+std::unique_ptr<const CChainParams> CreateChainParams(const std::string& chain);
/**
* Return the currently selected parameters. This won't change after app
@@ -121,9 +120,4 @@ const CChainParams &Params();
*/
void SelectParams(const std::string& chain);
-/**
- * Allows modifying the Version Bits regtest parameters.
- */
-void UpdateVersionBitsParameters(Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout);
-
#endif // BITCOIN_CHAINPARAMS_H