Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Limits coinbase to 21M (thx genjix)

  • Loading branch information...
commit 7110ddf25667f059ebcee159963b6703fff53e13 1 parent 8c26a0e
Thomas Nasakioto authored August 15, 2011

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. 6  src/main.cpp
6  src/main.cpp
@@ -640,7 +640,11 @@ int64 static GetBlockValue(int nHeight, int64 nFees)
640 640
 
641 641
     // Subsidy is cut in half every 4 years
642 642
     nSubsidy >>= (nHeight / 210000);
643  
-
  643
+	
  644
+	//Hard limit to 21M Ixcoins
  645
+	if (nHeight >= 218750)
  646
+		nSubsidy = 0;
  647
+		
644 648
     return nSubsidy + nFees;
645 649
 }
646 650
 

1 note on commit 7110ddf

Thomas Nasakioto
Owner

It would indeed be best to be closer to Bitcoin's 21M limit. So I've updated the nHeight to 227499. We still get a decrease to a 48 reward in the last 17499 blocks. This will be a warning sign to miners that they'll soon have to rely exclusively on transactions fees ~3 months later.

Thanks for your input kr105rlz and best of luck with i0coin.

Please sign in to comment.
Something went wrong with that request. Please try again.