Chainparams

From Ravencoin Wiki
Jump to navigation Jump to search

Mainnet

strNetworkID

strNetworkID = "main";

consensus.nSubsidyHalvingInterval

consensus.nSubsidyHalvingInterval = 2100000; //~ 4 yrs at 1 min block time

consensus.nBIP34Enabled

consensus.nBIP34Enabled = true;

consensus.nBIP65Enabled

consensus.nBIP65Enabled = true; // 000000000000000004c2b624ed5d7756c508d90fd0da2c7c679febfa6c4735f0

consensus.nBIP66Enabled

consensus.nBIP66Enabled = true;

consensus.nSegwitEnabled

consensus.nSegwitEnabled = true;

consensus.nCSVEnabled

consensus.nCSVEnabled = true;

consensus.powLimit

consensus.powLimit = uint256S("00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");

consensus.nPowTargetTimespan

consensus.nPowTargetTimespan = 2016 * 60; // 1.4 days

consensus.nPowTargetSpacing

consensus.nPowTargetSpacing = 1 * 60;

consensus.fPowAllowMinDifficultyBlocks

consensus.fPowAllowMinDifficultyBlocks = false;

consensus.fPowNoRetargeting

consensus.fPowNoRetargeting = false;

consensus.nRuleChangeActivationThreshold

consensus.nRuleChangeActivationThreshold = 1916; // 95% of 2016

consensus.nMinerConfirmationWindow

consensus.nMinerConfirmationWindow = 2016; // nPowTargetTimespan / nPowTargetSpacing

consensus.vDeployments

consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;

consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601; // January 1, 2008

consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008


consensus.nMinimumChainWork

// The best chain should have at least this much work.

consensus.nMinimumChainWork = uint256S("0x00");

consensus.defaultAssumeValid

// By default assume that the signatures in ancestors of this block are valid. consensus.defaultAssumeValid = uint256S("0x00");


pchMessageStart

pchMessageStart[0] = 0x52;

pchMessageStart[1] = 0x41;

pchMessageStart[2] = 0x56;

pchMessageStart[3] = 0x4e;

nDefaultPort

nDefaultPort = 8767;

nPruneAfterHeight

nPruneAfterHeight = 100000;

genesis

genesis = CreateGenesisBlock(1514999494, 25023712, 0x1e00ffff, 4, 5000 * COIN);

static CBlock CreateGenesisBlock(uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesisReward)
{
   const char* pszTimestamp = "The Times 03/Jan/2018 Bitcoin is name of the game for new generation of firms";
   const CScript genesisOutputScript = CScript() << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f") << 
OP_CHECKSIG;
   return CreateGenesisBlock(pszTimestamp, genesisOutputScript, nTime, nNonce, nBits, nVersion, genesisReward);
}

consensus.hashGenesisBlock

consensus.hashGenesisBlock = genesis.GetHash();

assert(consensus.hashGenesisBlock == uint256S("0x0000006b444bc2f2ffe627be9d9e7e7a0730000870ef6eb6da46c8eae389df90"));

assert(genesis.hashMerkleRoot == uint256S("0x28ff00a867739a352523808d301f504bc4547699398d70faf2266a8bae5f3516"));


vSeeds.emplace_back

vSeeds.emplace_back("seed-raven.ravencoin.org", false); vSeeds.emplace_back("seed-raven.bitactivate.com", false);

base58Prefixes

base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,60);

base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,122);

base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,128);

base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E};

base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4};

bech32_hrp

bech32_hrp = "rc";

vFixedSeeds

vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main));

fDefaultConsistencyChecks

fDefaultConsistencyChecks = false;

fRequireStandard

fRequireStandard = true;

fMineBlocksOnDemand

fMineBlocksOnDemand = false;

fMiningRequiresPeers

fMiningRequiresPeers = true;