Skip to content

Commit

Permalink
Update networks.py for digibyte v2.0
Browse files Browse the repository at this point in the history
Updated Subsidy_Function to reflect new reward scheme.
For Every 10080 Blocks after the 67200th Block: the Reward is reduced by 0.5%
  • Loading branch information
StormMiner committed Feb 28, 2014
1 parent c87849c commit 180d294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2pool/bitcoin/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ def check_genesis_block(bitcoind, genesis_block_hash):
'digibyteaddress' in (yield bitcoind.rpc_help()) and
not (yield bitcoind.rpc_getinfo())['testnet']
)),
SUBSIDY_FUNC=lambda height: 8000*100000000 >> (height + 1)//1051200,
SUBSIDY_FUNC=lambda height: 8000*100000000,
POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
BLOCK_PERIOD=60, # s
SYMBOL='DGB',
Expand Down

1 comment on commit 180d294

@chaeplin
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rav3nPL#21 (comment)

check https://github.com/chaeplin/SUBSIDY_FUNC/tree/master/digibyte-subsidy-python

python test.py
height 68,193 : 7,960.00000000
796000000000
height 67223
796000000000
height 77223
796000000000
height 87223
792020000000
height 97223
788059900000
height 107223
784119600500
height 1400
7200000000000
height 5750
1600000000000

http://i.imgur.com/94f4uNw.png
22 -> 20 :(

Please sign in to comment.