Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import platform
- from twisted.internet import defer
- from . import data
- from p2pool.util import math, pack
- nets = dict(
- oscoin=math.Object(
- P2P_PREFIX='e4e8e9e5'.decode('hex'),
- P2P_PORT=8888,
- ADDRESS_VERSION=2,
- RPC_PORT=8887,
- RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
- #This was changed >>>> I had ocoinaddress 'Ocoinaddress' in (yield bitcoind.rpc_help()) and
- not (yield bitcoind.rpc_getinfo())['testnet']
- )),
- SUBSIDY_FUNC=lambda height: 50*100000000 >> (height + 1)//210000,
- POW_FUNC=data.hash256,
- BLOCK_PERIOD=600, # s
- SYMBOL='OSC',
- CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'oscoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/oscoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.oscoin'), 'oscoin.conf'),
- BLOCK_EXPLORER_URL_PREFIX='',
- ADDRESS_EXPLORER_URL_PREFIX='',
- TX_EXPLORER_URL_PREFIX='',
- SANE_TARGET_RANGE=(2**256//2**32//1000 - 1, 2**256//2**32 - 1),
- DUMB_SCRYPT_DIFF=1,
- DUST_THRESHOLD=0.001e8,
- ),
- )
- for net_name, net in nets.iteritems():
- net.NAME = net_name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement