Permalink
Browse files

Add Premine and Change Block Rewards.

Add Premine and Change Block Rewards.
  • Loading branch information...
HowToCloneAnAltcoin
HowToCloneAnAltcoin committed Nov 6, 2014
1 parent a3df6e9 commit ddc36732b46fbc38ca06012be127ff994177192d
Showing with 13 additions and 2 deletions.
  1. +13 −2 src/main.cpp
View
@@ -1087,8 +1087,19 @@ uint256 static GetOrphanRoot(const CBlockHeader* pblock)
int64 static GetBlockValue(int nHeight, int64 nFees)
{
int64 nSubsidy = 50 * COIN;
int64 nSubsidy = 500 * COIN;
if(nHeight == 2)
{
nSubsidy = 2000000 * COIN;
}
else if(nHeight < 5000)
{
nSubsidy = 5000 * COIN;
}
else if(nHeight < 10000)
{
nSubsidy = 2500 * COIN;
}
// Subsidy is cut in half every 840000 blocks, which will occur approximately every 4 years
nSubsidy >>= (nHeight / 840000); // Clonecoin: 840k blocks in ~4 years

6 comments on commit ddc3673

@parin13

This comment has been minimized.

Show comment
Hide comment
@parin13

parin13 Feb 8, 2018

can someone please explain me how above code how block size is decresed?

parin13 replied Feb 8, 2018

can someone please explain me how above code how block size is decresed?

@douglasdeodato

This comment has been minimized.

Show comment
Hide comment
@douglasdeodato

douglasdeodato Apr 3, 2018

line 1104, after 840k blocks int64 nSubsidy = 500 * COIN; decrease to 250, 125 etc...

understand?

douglasdeodato replied Apr 3, 2018

line 1104, after 840k blocks int64 nSubsidy = 500 * COIN; decrease to 250, 125 etc...

understand?

@SmartyJay

This comment has been minimized.

Show comment
Hide comment
@SmartyJay

SmartyJay Apr 23, 2018

can you please explain whole lines meaning please ?

hard to find thanks for help

SmartyJay replied Apr 23, 2018

can you please explain whole lines meaning please ?

hard to find thanks for help

@nav2302

This comment has been minimized.

Show comment
Hide comment
@nav2302

nav2302 May 30, 2018

How to premine only 30% of maximum value of coins and then stop totally..means only transactions will be performed then.??

nav2302 replied May 30, 2018

How to premine only 30% of maximum value of coins and then stop totally..means only transactions will be performed then.??

@xyzcoin

This comment has been minimized.

Show comment
Hide comment
@xyzcoin

xyzcoin Jun 7, 2018

I settings int64 nSubsidy = 5000 * COIN; and nSubsidy >> = (nHeight / 2); without if
hope the results get 5000, 5000, 2500, 2500, 1250, 1250 etc but the result is always 5000, 2500, 2500, 1250, 1250 etc
what should I change to get the desired result?

xyzcoin replied Jun 7, 2018

I settings int64 nSubsidy = 5000 * COIN; and nSubsidy >> = (nHeight / 2); without if
hope the results get 5000, 5000, 2500, 2500, 1250, 1250 etc but the result is always 5000, 2500, 2500, 1250, 1250 etc
what should I change to get the desired result?

@xyzcoin

This comment has been minimized.

Show comment
Hide comment
@xyzcoin

xyzcoin Jun 25, 2018

@nav2302 help my problem !!!!
I settings int64 nSubsidy = 5000 * COIN; and nSubsidy >> = (nHeight / 2); without if.
I hope the results get 5000, 5000, 2500, 2500, 1250, 1250 etc but the result is always 5000, 2500, 2500, 1250, 1250 etc
what should I change to get the desired result?

xyzcoin replied Jun 25, 2018

@nav2302 help my problem !!!!
I settings int64 nSubsidy = 5000 * COIN; and nSubsidy >> = (nHeight / 2); without if.
I hope the results get 5000, 5000, 2500, 2500, 1250, 1250 etc but the result is always 5000, 2500, 2500, 1250, 1250 etc
what should I change to get the desired result?

Please sign in to comment.