|
|
@ -235,12 +235,6 @@ void *chainparams_commandline(void *ptr) |
|
|
|
mainParams.pchMessageStart[3] = (ASSETCHAINS_MAGIC >> 24) & 0xff; |
|
|
|
fprintf(stderr,">>>>>>>>>> %s: p2p.%u rpc.%u magic.%08x %u %u coins\n",ASSETCHAINS_SYMBOL,ASSETCHAINS_P2PPORT,ASSETCHAINS_RPCPORT,ASSETCHAINS_MAGIC,ASSETCHAINS_MAGIC,(uint32_t)ASSETCHAINS_SUPPLY); |
|
|
|
|
|
|
|
// only require coinbase protection on Verus from the Komodo family of coins
|
|
|
|
if (strcmp(ASSETCHAINS_SYMBOL,"VRSC") == 0) |
|
|
|
{ |
|
|
|
mainParams.consensus.fCoinbaseMustBeProtected = true; |
|
|
|
} |
|
|
|
|
|
|
|
if (ASSETCHAINS_ALGO != ASSETCHAINS_EQUIHASH) |
|
|
|
{ |
|
|
|
// this is only good for 60 second blocks with an averaging window of 45. for other parameters, use:
|
|
|
@ -262,22 +256,38 @@ void *chainparams_commandline(void *ptr) |
|
|
|
mainParams.consensus.nLwmaPOSAjustedWeight = 46531; |
|
|
|
} |
|
|
|
|
|
|
|
checkpointData = //(Checkpoints::CCheckpointData)
|
|
|
|
{ |
|
|
|
boost::assign::map_list_of |
|
|
|
(0, mainParams.consensus.hashGenesisBlock) |
|
|
|
(10000, uint256S("0xac2cd7d37177140ea4991cf630c0b9c7f94d707b84fb0351bf3a44856d2ae5dc")) |
|
|
|
(20000, uint256S("0xb0e8cb9f77aaa7ff5bd90d6c08d06f4c4bf03e00c2b8a35a042e760845590c8a")) |
|
|
|
(30000, uint256S("0xf2112ca577338ad7104bf905fa6a63d36b17a86f914c97b73cd31d43fcd7557c")) |
|
|
|
(40000, uint256S("0x00000000008f83378dab727864b763ce91a4ea5f75d55939c0c1390cfb8c38f1")) |
|
|
|
(49170, uint256S("0x2add646c0089871ec2379f02f7cd60b3af6efd9c152a6f16fc10925458c270cc")), |
|
|
|
(int64_t)1529910234, // * UNIX timestamp of last checkpoint block
|
|
|
|
(int64_t)63661, // * total number of transactions between genesis and last checkpoint
|
|
|
|
// (the tx=... number in the SetBestChain debug.log lines)
|
|
|
|
(double)2777 // * estimated number of transactions per day after checkpoint
|
|
|
|
// total number of tx / (checkpoint block height / (24 * 24))
|
|
|
|
}; |
|
|
|
|
|
|
|
// only require coinbase protection on Verus from the Komodo family of coins
|
|
|
|
if (strcmp(ASSETCHAINS_SYMBOL,"VRSC") == 0) |
|
|
|
{ |
|
|
|
mainParams.consensus.fCoinbaseMustBeProtected = true; |
|
|
|
checkpointData = //(Checkpoints::CCheckpointData)
|
|
|
|
{ |
|
|
|
boost::assign::map_list_of |
|
|
|
(0, mainParams.consensus.hashGenesisBlock) |
|
|
|
(10000, uint256S("0xac2cd7d37177140ea4991cf630c0b9c7f94d707b84fb0351bf3a44856d2ae5dc")) |
|
|
|
(20000, uint256S("0xb0e8cb9f77aaa7ff5bd90d6c08d06f4c4bf03e00c2b8a35a042e760845590c8a")) |
|
|
|
(30000, uint256S("0xf2112ca577338ad7104bf905fa6a63d36b17a86f914c97b73cd31d43fcd7557c")) |
|
|
|
(40000, uint256S("0x00000000008f83378dab727864b763ce91a4ea5f75d55939c0c1390cfb8c38f1")) |
|
|
|
(49170, uint256S("0x2add646c0089871ec2379f02f7cd60b3af6efd9c152a6f16fc10925458c270cc")), |
|
|
|
(int64_t)1529910234, // * UNIX timestamp of last checkpoint block
|
|
|
|
(int64_t)63661, // * total number of transactions between genesis and last checkpoint
|
|
|
|
// (the tx=... number in the SetBestChain debug.log lines)
|
|
|
|
(double)2777 // * estimated number of transactions per day after checkpoint
|
|
|
|
// total number of tx / (checkpoint block height / (24 * 24))
|
|
|
|
}; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
checkpointData = //(Checkpoints::CCheckpointData)
|
|
|
|
{ |
|
|
|
boost::assign::map_list_of |
|
|
|
(0, mainParams.consensus.hashGenesisBlock), |
|
|
|
(int64_t)1231006505, |
|
|
|
(int64_t)1, |
|
|
|
(double)2777 // * estimated number of transactions per day after checkpoint
|
|
|
|
// total number of tx / (checkpoint block height / (24 * 24))
|
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|