Commit 915566f micro-machine
committed
1 parent fb01f09 commit 915566f Copy full SHA for 915566f
File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -223,8 +223,20 @@ Block.prototype.checkBlock = function checkBlock(txs) {
223
223
} ;
224
224
225
225
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
+ }
228
240
subsidy = Math . floor ( subsidy ) ;
229
241
subsidy = new Bignum ( subsidy ) ;
230
242
return subsidy ;
You can’t perform that action at this time.
0 commit comments