Merge pull request #2 from jl777/PoS

PoS
This commit is contained in:
jl777
2016-09-13 16:15:40 -03:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ class CMainParams : public CChainParams {
public:
CMainParams() {
strNetworkID = "main";
consensus.fCoinbaseMustBeProtected = true;
consensus.fCoinbaseMustBeProtected = false;//true;
consensus.nSubsidySlowStartInterval = 20000;
consensus.nSubsidyHalvingInterval = 840000;
consensus.nMajorityEnforceBlockUpgrade = 750;

View File

@@ -90,7 +90,7 @@ static void CheckBlockIndex();
/** Constant stuff for coinbase transactions we create: */
CScript COINBASE_FLAGS;
const string strMessageMagic = "Bitcoin Signed Message:\n";
const string strMessageMagic = "Komodo Signed Message:\n";
// Internal stuff
namespace {
@@ -1368,6 +1368,8 @@ bool ReadBlockFromDisk(CBlock& block, const CBlockIndex* pindex)
CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams)
{
CAmount nSubsidy = 3 * COIN;
if ( nHeight == 1 )
return(100000000 * COIN); // ICO allocation
/*
// Mining slow start
// The subsidy is ramped up linearly, skipping the middle payout of