Skip to content

Commit

Permalink
Updated to new Digitalcoin specifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
CartmanSPC authored and CartmanSPC committed Nov 20, 2013
1 parent b1c5f09 commit f71844d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions p2pool/bitcoin/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@
'digitalcoinaddress' in (yield bitcoind.rpc_help()) and
not (yield bitcoind.rpc_getinfo())['testnet']
)),
SUBSIDY_FUNC=lambda height: 20*10000000 >> (height + 1)//4730400,
SUBSIDY_FUNC=lambda height: 15*10000000 >> (height + 1)//4730400,
POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
BLOCK_PERIOD=20, # s targetspacing
BLOCK_PERIOD=40, # s targetspacing
SYMBOL='DGC',
CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'digitalcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/digitalcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.digitalcoin'), 'digitalcoin.conf'),
BLOCK_EXPLORER_URL_PREFIX='http://altcha.in/block/',
Expand Down
8 changes: 4 additions & 4 deletions p2pool/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@
CHAIN_LENGTH=24*60*60//15, # shares
REAL_CHAIN_LENGTH=3*60*60//15, # shares
TARGET_LOOKBEHIND=200, # shares coinbase maturity
SPREAD=90, # blocks
NEW_SPREAD=90, # blocks
IDENTIFIER='7696CF5EB2F68CC3'.decode('hex'),
PREFIX='4C2307E841C11D7F'.decode('hex'),
SPREAD=45, # blocks
NEW_SPREAD=45, # blocks
IDENTIFIER='7696CF5EB2F68C88'.decode('hex'),
PREFIX='4C2307E841C11FDD'.decode('hex'),
P2P_PORT=23610,
MIN_TARGET=0,
MAX_TARGET=2**256//2**20 - 1,
Expand Down

0 comments on commit f71844d

Please sign in to comment.