24 static CBlock CreateGenesisBlock(
const char* pszTimestamp,
const CScript& genesisOutputScript, uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion,
const CAmount& genesisReward)
30 txNew.
vin[0].scriptSig =
CScript() <<
CScriptNum(0) << 486604799 <<
CScriptNum(4) << std::vector<unsigned char>((
const unsigned char*)pszTimestamp, (
const unsigned char*)pszTimestamp + strlen(pszTimestamp));
31 txNew.
vout[0].nValue = genesisReward;
32 txNew.
vout[0].scriptPubKey = genesisOutputScript;
35 genesis.
nTime = nTime;
36 genesis.
nBits = nBits;
39 genesis.
vtx.push_back(MakeTransactionRef(std::move(txNew)));
56 static CBlock CreateGenesisBlock(uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion,
const CAmount& genesisReward)
58 const char* pszTimestamp =
"The Times 03/Jan/2018 Bitcoin is name of the game for new generation of firms";
59 const CScript genesisOutputScript =
CScript() <<
ParseHex(
"04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f") <<
OP_CHECKSIG;
60 return CreateGenesisBlock(pszTimestamp, genesisOutputScript, nTime, nNonce, nBits, nVersion, genesisReward);
180 genesis = CreateGenesisBlock(1514999494, 25023712, 0x1e00ffff, 4, 5000 * COIN);
185 assert(genesis.
hashMerkleRoot ==
uint256S(
"28ff00a867739a352523808d301f504bc4547699398d70faf2266a8bae5f3516"));
187 vSeeds.emplace_back(
"seed-raven.bitactivate.com",
false);
188 vSeeds.emplace_back(
"seed-raven.ravencoin.com",
false);
189 vSeeds.emplace_back(
"seed-raven.ravencoin.org",
false);
193 base58Prefixes[
SECRET_KEY] = std::vector<unsigned char>(1,128);
206 { 535721,
uint256S(
"0x000000000001217f58a594ca742c8635ecaaaf695d1a63f6ab06979f1c159e04")},
207 { 697376,
uint256S(
"0x000000000000499bf4ebbe61541b02e4692b33defc7109d8f12d2825d4d2dfa0")},
208 { 740000,
uint256S(
"0x00000000000027d11bf1e7a3b57d3c89acc1722f39d6e08f23ac3a07e16e3172")},
318 uint32_t nGenesisTime = 1537466400;
380 genesis = CreateGenesisBlock(nGenesisTime, 15615880, 0x1e00ffff, 2, 5000 * COIN);
385 assert(genesis.
hashMerkleRoot ==
uint256S(
"28ff00a867739a352523808d301f504bc4547699398d70faf2266a8bae5f3516"));
390 vSeeds.emplace_back(
"seed-testnet-raven.bitactivate.com",
false);
391 vSeeds.emplace_back(
"seed-testnet-raven.ravencoin.com",
false);
392 vSeeds.emplace_back(
"seed-testnet-raven.ravencoin.org",
false);
396 base58Prefixes[
SECRET_KEY] = std::vector<unsigned char>(1,239);
577 genesis = CreateGenesisBlock(1524179366, 1, 0x207fffff, 4, 5000 * COIN);
581 assert(genesis.
hashMerkleRoot ==
uint256S(
"0x28ff00a867739a352523808d301f504bc4547699398d70faf2266a8bae5f3516"));
603 base58Prefixes[
SECRET_KEY] = std::vector<unsigned char>(1,239);
648 static std::unique_ptr<CChainParams> globalChainParams;
651 assert(globalChainParams);
652 return *globalChainParams;
658 return std::unique_ptr<CChainParams>(
new CMainParams());
663 throw std::runtime_error(
strprintf(
"%s: Unknown chain %s.", __func__, chain));
674 globalChainParams->UpdateVersionBitsParameters(d, nStartTime, nTimeout);
678 globalChainParams->TurnOffSegwit();
682 globalChainParams->TurnOffCSV();
686 globalChainParams->TurnOffBIP34();
690 globalChainParams->TurnOffBIP65();
694 globalChainParams->TurnOffBIP66();
uint32_t nOverrideMinerConfirmationWindow
Use to override the confirmation window on a specific BIP.
int nAssetActivationHeight
CAmount nIssueSubQualifierAssetBurnAmount
void UpdateVersionBitsParameters(Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout)
CAmount nIssueSubAssetBurnAmount
int64_t nPowTargetTimespan
static const std::string REGTEST
CAmount nIssueAssetBurnAmount
RVN Start.
std::vector< unsigned char > base58Prefixes[MAX_BASE58_TYPES]
bool fPowAllowMinDifficultyBlocks
int nMinReorganizationAge
std::string strIssueSubAssetBurnAddress
CChainParams defines various tweakable parameters of a given instance of the Raven system...
std::string strAddNullQualifierTagBurnAddress
std::string strIssueSubQualifierAssetBurnAddress
std::string strIssueUniqueAssetBurnAddress
CAmount nReissueAssetBurnAmount
CAmount nIssueUniqueAssetBurnAmount
CMessageHeader::MessageStartChars pchMessageStart
static const std::string MAIN
BIP70 chain name strings (main, test or regtest)
int nSubsidyHalvingInterval
bool nBIP34Enabled
Block height and hash at which BIP34 becomes active.
int64_t CAmount
Amount in corbies (Can be negative)
uint256 powLimit
Proof of work parameters.
std::unique_ptr< CChainParams > CreateChainParams(const std::string &chain)
Creates and returns a std::unique_ptr<CChainParams> of the chosen chain.
void SelectParams(const std::string &network)
Sets the params returned by Params() to those for the given BIP70 chain name.
std::string strIssueRestrictedAssetBurnAddress
uint256 uint256S(const char *str)
int64_t nStartTime
Start MedianTime for version bits miner confirmation.
int64_t nPowTargetSpacing
uint256 BlockMerkleRoot(const CBlock &block, bool *mutated)
uint32_t nMinerConfirmationWindow
std::vector< CTxOut > vout
int nMinReorganizationPeers
CAmount nIssueQualifierAssetBurnAmount
std::vector< CDNSSeedData > vSeeds
std::string strReissueAssetBurnAddress
int64_t nTimeout
Timeout/expiry MedianTime for the deployment attempt.
std::string strIssueAssetBurnAddress
uint256 nMinimumChainWork
int nMaxReorganizationDepth
std::vector< CTransactionRef > vtx
std::vector< SeedSpec6 > vFixedSeeds
uint256 defaultAssumeValid
const CChainParams & Params()
Return the currently selected parameters.
std::string strGlobalBurnAddress
Serialized script, used inside transaction inputs and outputs.
Consensus::Params consensus
CAmount nIssueMsgChannelAssetBurnAmount
bool fMiningRequiresPeers
unsigned int nDGWActivationBlock
static const std::string TESTNET
A mutable version of CTransaction.
uint32_t nRuleChangeActivationThreshold
Block height at which BIP65 becomes active.
uint64_t nPruneAfterHeight
std::string strIssueQualifierAssetBurnAddress
int bit
Bit position to select the particular bit in nVersion.
CCheckpointData checkpointData
void SelectBaseParams(const std::string &chain)
Sets the params returned by Params() to those for the given network.
std::string strIssueMsgChannelAssetBurnAddress
unsigned int nRestrictedActivationBlock
uint32_t nOverrideRuleChangeActivationThreshold
Use to override the the activation threshold on a specific BIP.
CAmount nIssueRestrictedAssetBurnAmount
unsigned int nMessagingActivationBlock
CAmount nAddNullQualifierTagBurnAmount
bool fDefaultConsistencyChecks
BIP9Deployment vDeployments[MAX_VERSION_BITS_DEPLOYMENTS]
std::vector< unsigned char > ParseHex(const char *psz)