Niestety, nie wiem skąd wziąć potrzebne dane.
Poniżej wklejam kawałki kodu odpowiedzialne za BTC i TRC do porównania.
Może ktoś wie, jakie są dane PPC?
bitcoin/networks.py
Kod: Zaznacz cały
bitcoin=math.Object(
P2P_PREFIX='f9beb4d9'.decode('hex'),
P2P_PORT=8333,
ADDRESS_VERSION=0,
RPC_PORT=8332,
RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
'bitcoinaddress' 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='BTC',
CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Bitcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Bitcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.bitcoin'), 'bitcoin.conf'),
BLOCK_EXPLORER_URL_PREFIX='http://blockexplorer.com/block/',
ADDRESS_EXPLORER_URL_PREFIX='http://blockexplorer.com/address/',
SANE_TARGET_RANGE=(2**256//2**32//1000 - 1, 2**256//2**32 - 1),
DUMB_SCRYPT_DIFF=1,
),
terracoin=math.Object(
P2P_PREFIX='42babe56'.decode('hex'),
P2P_PORT=13333,
ADDRESS_VERSION=0,
RPC_PORT=13332,
RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
'terracoinaddress' in (yield bitcoind.rpc_help()) and
not (yield bitcoind.rpc_getinfo())['testnet']
)),
SUBSIDY_FUNC=lambda height: 20*100000000 >> (height + 1)//1050000,
POW_FUNC=data.hash256,
BLOCK_PERIOD=120, # s
SYMBOL='TRC',
CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Terracoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Terracoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.terracoin'), 'terracoin.conf'),
BLOCK_EXPLORER_URL_PREFIX='http://cryptocoinexplorer.com:3750/block/',
ADDRESS_EXPLORER_URL_PREFIX='http://cryptocoinexplorer.com:3750/address/',
SANE_TARGET_RANGE=(2**256//2**32//1000 - 1, 2**256//2**32 - 1),
DUMB_SCRYPT_DIFF=1,
),
Kod: Zaznacz cały
bitcoin=math.Object(
PARENT=networks.nets['bitcoin'],
SHARE_PERIOD=10, # seconds
CHAIN_LENGTH=24*60*60//10, # shares
REAL_CHAIN_LENGTH=24*60*60//10, # shares
TARGET_LOOKBEHIND=200, # shares
SPREAD=3, # blocks
IDENTIFIER='fc70035c7a81bc6f'.decode('hex'),
PREFIX='2472ef181efcd37b'.decode('hex'),
P2P_PORT=9333,
MIN_TARGET=0,
MAX_TARGET=2**256//2**32 - 1,
PERSIST=True,
WORKER_PORT=9332,
BOOTSTRAP_ADDRS='forre.st vps.forre.st 74.220.242.6:9334 93.97.192.93 66.90.73.83 67.83.108.0 219.84.64.174 24.167.17.248 109.74.195.142 83.211.86.49 94.23.34.145 168.7.116.243 94.174.40.189:9344 89.79.79.195 portals94.ns01.us'.split(' '),
ANNOUNCE_CHANNEL='#p2pool',
VERSION_CHECK=lambda v: 50700 <= v < 60000 or 60010 <= v < 60100 or 60400 <= v,
),
terracoin=math.Object(
PARENT=networks.nets['terracoin'],
SHARE_PERIOD=30, # seconds
CHAIN_LENGTH=24*60*60//30, # shares
REAL_CHAIN_LENGTH=24*60*60//30, # shares
TARGET_LOOKBEHIND=200, # shares
SPREAD=15, # blocks
IDENTIFIER='a41b2356a1b7d35e'.decode('hex'),
PREFIX='5623b62178d2b8a3'.decode('hex'),
P2P_PORT=9323,
MIN_TARGET=0,
MAX_TARGET=2**256//2**32 - 1,
PERSIST=True,
WORKER_PORT=9322,
BOOTSTRAP_ADDRS='seed1.p2pool.terracoin.org seed2.p2pool.terracoin.org forre.st vps.forre.st 93.97.192.93 66.90.73.83 67.83.108.0 219.84.64.174 24.167.17.248 109.74.195.142 83.211.86.49 94.23.34.145 168.7.116.243 94.174.40.189:9344 89.79.79.195 portals94.ns01.us'.split(' '),
ANNOUNCE_CHANNEL='#p2pool-alt',
VERSION_CHECK=lambda v: True,
),
Niestety nie udało mi się tego w kodzie ppcoind łatwo znaleźć, może ktoś wie gdzie to zaszyte jest?