Permalink
Browse files

Limits coinbase to 21M (thx genjix)

  • Loading branch information...
ixcoin committed Aug 15, 2011
1 parent 8c26a0e commit 7110ddf25667f059ebcee159963b6703fff53e13
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/main.cpp
View
@@ -640,7 +640,11 @@ int64 static GetBlockValue(int nHeight, int64 nFees)
// Subsidy is cut in half every 4 years
nSubsidy >>= (nHeight / 210000);
-
+
+ //Hard limit to 21M Ixcoins
+ if (nHeight >= 218750)
+ nSubsidy = 0;
+
return nSubsidy + nFees;
}

1 comment on commit 7110ddf

@ixcoin

This comment has been minimized.

Show comment
Hide comment
@ixcoin

ixcoin Aug 16, 2011

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.

Owner

ixcoin commented on 7110ddf Aug 16, 2011

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.