From 1a3217771296fa70b313f21e387f44658c02682f Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 13 Sep 2016 15:51:25 -0300 Subject: [PATCH 1/2] PoS block --- src/chainparams.cpp | 2 +- src/main.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/chainparams.cpp b/src/chainparams.cpp index f732b5cb9..93f6b5417 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -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; diff --git a/src/main.cpp b/src/main.cpp index ded9a6cc9..74e797689 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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); /* // Mining slow start // The subsidy is ramped up linearly, skipping the middle payout of From f333b7b9e91eed96a1540cf7a671bddc089f390d Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 13 Sep 2016 16:14:36 -0300 Subject: [PATCH 2/2] ICO allocation --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 74e797689..01bef8d78 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1369,7 +1369,7 @@ CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams) { CAmount nSubsidy = 3 * COIN; if ( nHeight == 1 ) - return(100000000 * COIN); + return(100000000 * COIN); // ICO allocation /* // Mining slow start // The subsidy is ramped up linearly, skipping the middle payout of