Skip to content

wonko433/darkcoin_subsidy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

darkcoin_subsidy (python) v1.1

Python module for Darkcoin's subsidy function.

Currently to be used for:

  • p2pool-drk (SUBSIDY_FUNC)
  • darkcoind-ncurses (block_subsidy)

Install

Python 2.7 is required as well as a gcc with c++ bindings.

$ sudo python2 setup.py install

Usage

Import the module and call the function:

import darkcoin_subsidy as ds

nBits = 469894998
nHeight = 21288
print ds.GetBlockBaseValue(nBits, nHeight)

Testnet:

print ds.GetBlockBaseValue_testnet(nBits, nHeight)

Credits

About

SUBSIDY_FUNC for p2pool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 74.4%
  • Python 25.6%