Skip to content
Permalink
Browse files
add todo for dgb blockreward
  • Loading branch information
TheTrunk committed Feb 25, 2020
1 parent 58f2b38 commit 877939047168739dbc06401bde938ab258733939
Showing 1 changed file with 3 additions and 2 deletions.
@@ -108,13 +108,14 @@ module.exports = {
}
},
blockRewardFunction:function(blockHeight) {
// TODO https://github.com/digibyte/digibyte/blob/master/src/validation.cpp#L1173
var eras = [ new Decimal8(8000) ];
for (var i = 1; i < 34; i++) {
for (var i = 1; i < 64; i++) {
var previous = eras[i - 1];
eras.push(new Decimal8(previous).dividedBy(2));
}

var index = Math.floor(blockHeight / 100000);
var index = Math.floor(blockHeight / 210000);

return eras[index];
}

0 comments on commit 8779390

Please sign in to comment.