Skip to content

Commit 915566f

Browse files
author
micro-machine
committed
reddcoin block reward schedule
1 parent fb01f09 commit 915566f

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

lib/Block.js

+14-2
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,20 @@ Block.prototype.checkBlock = function checkBlock(txs) {
223223
};
224224

225225
Block.getBlockValue = function getBlockValue(height) {
226-
var subsidy = 50 * util.COIN;
227-
subsidy = subsidy / (Math.pow(2, Math.floor(height / 210000)));
226+
var subsidy = 100000 * util.COIN;
227+
if (height == 0) {
228+
subsidy = 10000 * util.COIN;
229+
} else if (height < 11) {
230+
subsidy = 545000000 * util.COIN;
231+
} else if (height < 10000) {
232+
subsidy = 300000 * util.COIN;
233+
} else if (height < 20000) {
234+
subsidy = 200000 * util.COIN;
235+
} else if (height < 30000) {
236+
subsidy = 150000 * util.COIN;
237+
} else if (height >= 140000) {
238+
subsidy = subsidy / (Math.pow(2, Math.floor((height - 140000 + 50000)/ 50000)));
239+
}
228240
subsidy = Math.floor(subsidy);
229241
subsidy = new Bignum(subsidy);
230242
return subsidy;

0 commit comments

Comments
 (0)