|
Title: networks.py for AnonCoin P2Pool (or any AltCoin) Post by: GoodHosting on December 05, 2013, 06:58:13 AM networks.py for AnonCoin P2Pool
Anyone had this problem before and have a solution handy ? I did find this which supports some altcoins, but not AnonCoin https://github.com/CartmanSPC/p2pool/blob/master/p2pool/networks.py What I'm looking for is this, but for AnonCoin (and GoldCoin for that matter) Code: digitalcoin=math.Object( Also this from /p2pool/bitcoin/networks.py Code: digitalcoin=math.Object( Title: Re: networks.py for AnonCoin P2Pool (or any AltCoin) Post by: GoodHosting on December 06, 2013, 06:46:36 AM Updated version, completely untested
Code: from p2pool.bitcoin import networks and [code] import os import platform from twisted.internet import defer from . import data from p2pool.util import math, pack nets = dict( 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='https://blockchain.info/block/', ADDRESS_EXPLORER_URL_PREFIX='https://blockchain.info/address/', SANE_TARGET_RANGE=(2**256//2**32//1000 - 1, 2**256//2**32 - 1), DUMB_SCRYPT_DIFF=1, DUST_THRESHOLD=0.001e8, ), bitcoin_testnet=math.Object( P2P_PREFIX='0b110907'.decode('hex'), P2P_PORT=18333, ADDRESS_VERSION=111, RPC_PORT=18332, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'bitcoinaddress' in (yield bitcoind.rpc_help()) and (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 50*100000000 >> (height + 1)//210000, POW_FUNC=data.hash256, BLOCK_PERIOD=600, # s SYMBOL='tBTC', 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/testnet/block/', ADDRESS_EXPLORER_URL_PREFIX='http://blockexplorer.com/testnet/address/', SANE_TARGET_RANGE=(2**256//2**32//1000 - 1, 2**256//2**32 - 1), DUMB_SCRYPT_DIFF=1, DUST_THRESHOLD=1e8, ), namecoin=math.Object( P2P_PREFIX='f9beb4fe'.decode('hex'), P2P_PORT=8334, ADDRESS_VERSION=52, RPC_PORT=8332, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'namecoinaddress' 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='NMC', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Namecoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Namecoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.namecoin'), 'bitcoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://explorer.dot-bit.org/b/', ADDRESS_EXPLORER_URL_PREFIX='http://explorer.dot-bit.org/a/', SANE_TARGET_RANGE=(2**256//2**32 - 1, 2**256//2**32 - 1), DUMB_SCRYPT_DIFF=1, DUST_THRESHOLD=0.2e8, ), namecoin_testnet=math.Object( P2P_PREFIX='fabfb5fe'.decode('hex'), P2P_PORT=18334, ADDRESS_VERSION=111, RPC_PORT=8332, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'namecoinaddress' in (yield bitcoind.rpc_help()) and (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 50*100000000 >> (height + 1)//210000, POW_FUNC=data.hash256, BLOCK_PERIOD=600, # s SYMBOL='tNMC', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Namecoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Namecoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.namecoin'), 'bitcoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://testnet.explorer.dot-bit.org/b/', ADDRESS_EXPLORER_URL_PREFIX='http://testnet.explorer.dot-bit.org/a/', SANE_TARGET_RANGE=(2**256//2**32 - 1, 2**256//2**32 - 1), DUMB_SCRYPT_DIFF=1, DUST_THRESHOLD=1e8, ), litecoin=math.Object( P2P_PREFIX='fbc0b6db'.decode('hex'), P2P_PORT=9333, ADDRESS_VERSION=48, RPC_PORT=9332, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'litecoinaddress' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 50*100000000 >> (height + 1)//840000, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=150, # s SYMBOL='LTC', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Litecoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Litecoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.litecoin'), 'litecoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://explorer.litecoin.net/block/', ADDRESS_EXPLORER_URL_PREFIX='http://explorer.litecoin.net/address/', SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1), DUMB_SCRYPT_DIFF=2**16, DUST_THRESHOLD=0.03e8, ), litecoin_testnet=math.Object( P2P_PREFIX='fcc1b7dc'.decode('hex'), P2P_PORT=19333, ADDRESS_VERSION=111, RPC_PORT=19332, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'litecoinaddress' in (yield bitcoind.rpc_help()) and (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 50*100000000 >> (height + 1)//840000, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=150, # s SYMBOL='tLTC', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Litecoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Litecoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.litecoin'), 'litecoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://nonexistent-litecoin-testnet-explorer/block/', ADDRESS_EXPLORER_URL_PREFIX='http://nonexistent-litecoin-testnet-explorer/address/', SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256 - 1), DUMB_SCRYPT_DIFF=2**16, DUST_THRESHOLD=1e8, ), 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, DUST_THRESHOLD=1e8, ), terracoin_testnet=math.Object( P2P_PREFIX='41babe56'.decode('hex'), P2P_PORT=23333, ADDRESS_VERSION=111, RPC_PORT=23332, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'terracoinaddress' in (yield bitcoind.rpc_help()) and (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 20*100000000 >> (height + 1)//1050000, POW_FUNC=data.hash256, BLOCK_PERIOD=120, # s SYMBOL='tTRC', 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/testnet/block/', ADDRESS_EXPLORER_URL_PREFIX='http://cryptocoinexplorer.com:3750/testnet/address/', SANE_TARGET_RANGE=(2**256//2**32//1000 - 1, 2**256//2**32 - 1), DUMB_SCRYPT_DIFF=1, DUST_THRESHOLD=1e8, ), digitalcoin=math.Object( P2P_PREFIX='fbc0b6db'.decode('hex'), P2P_PORT=7999, ADDRESS_VERSION=30, RPC_PORT=7998, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'digitalcoinaddress' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 15*10000000 >> (height + 1)//4730400, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), 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/', ADDRESS_EXPLORER_URL_PREFIX='http://altcha.in/address/', SANE_TARGET_RANGE=(2**256//100000000 - 1, 2**256//1000 - 1), DUMB_SCRYPT_DIFF=2**16, DUST_THRESHOLD=1e8, ), worldcoin=math.Object( P2P_PREFIX='fbc0b6db'.decode('hex'), P2P_PORT=11081, ADDRESS_VERSION=73, RPC_PORT=11082, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'worldcoinaddress' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 64*10000000, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=30, # s targetspacing SYMBOL='WDC', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'worldcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/worldcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.worldcoin'), 'worldcoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://wdc.cryptocoinexplorer.com/block/', ADDRESS_EXPLORER_URL_PREFIX='http://wdc.cryptocoinexplorer.com/address/', SANE_TARGET_RANGE=(2**256//100000000 - 1, 2**256//1000 - 1), DUMB_SCRYPT_DIFF=2**16, DUST_THRESHOLD=1e8, ), craftcoin=math.Object( P2P_PREFIX='fcd9b7dd'.decode('hex'), P2P_PORT=12124, ADDRESS_VERSION=57, RPC_PORT=12123, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'craftcoin address' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 10*10000000, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=300, # s targetspacing SYMBOL='CRC', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'craftcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/craftcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.craftcoin'), 'craftcoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://crc.cryptocoinexplorer.com/block/', ADDRESS_EXPLORER_URL_PREFIX='http://crc.cryptocoinexplorer.com/address/', SANE_TARGET_RANGE=(2**256//100000000 - 1, 2**256//1000 - 1), DUMB_SCRYPT_DIFF=2**16, DUST_THRESHOLD=1e8, ), casinocoin=math.Object( P2P_PREFIX='fac3b6da'.decode('hex'), P2P_PORT=47950, ADDRESS_VERSION=28, RPC_PORT=47970, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'casinocoinaddress' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 50*10000000 >> (height + 1)//3153600, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=30, # s targetspacing SYMBOL='CSC', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'casinocoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/casinocoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.casinocoin'), 'casinocoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://altcha.in/block/', ADDRESS_EXPLORER_URL_PREFIX='http://altcha.in/address/', SANE_TARGET_RANGE=(2**256//100000000 - 1, 2**256//1000 - 1), DUMB_SCRYPT_DIFF=2**16, DUST_THRESHOLD=1e8, ), feathercoin=math.Object( P2P_PREFIX='fbc0b6db'.decode('hex'), P2P_PORT=9336, ADDRESS_VERSION=14, RPC_PORT=9337, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'feathercoinaddress' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 200*100000000 >> (height + 1)//3360000, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=150, # s SYMBOL='FTC', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Feathercoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Feathercoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.feathercoin'), 'feathercoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://cryptocoinexplorer.com:5750/block/', ADDRESS_EXPLORER_URL_PREFIX='http://cryptocoinexplorer.com:5750/address/', SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1), DUMB_SCRYPT_DIFF=2**16, ), chncoin=math.Object( P2P_PREFIX='fbc0b6db'.decode('hex'), P2P_PORT=8106, ADDRESS_VERSION=28, RPC_PORT=8108, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'chncoinaddress' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 88*100000000 >> (height + 1)//462528000, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=60, # s SYMBOL='CHN', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'chncoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/chncoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.chncoin'), 'chncoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://cnc.cryptocoinexplorer.com/block/', ADDRESS_EXPLORER_URL_PREFIX='http://cnc.cryptocoinexplorer.com/address/', SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1), DUMB_SCRYPT_DIFF=2**16, ), junkcoin=math.Object( P2P_PREFIX='fbc0b6db'.decode('hex'), P2P_PORT=9772, ADDRESS_VERSION=16, RPC_PORT=9771, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'junkcoinaddress' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 50*100000000 >> (height + 1)//1080000, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=60, # s targetspacing SYMBOL='JKC', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Junkcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Junkcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.junkcoin'), 'junkcoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://d.evco.in/abe/block/', ADDRESS_EXPLORER_URL_PREFIX='http://d.evco.in/abe/address/', SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1), DUMB_SCRYPT_DIFF=2**12, ), bbqcoin=math.Object( P2P_PREFIX='fde4d942'.decode('hex'), P2P_PORT=19323, ADDRESS_VERSION=85, RPC_PORT=59332, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'bbqcoinaddress' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 42*100000000 >> (height + 1)//24000000, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=60, # s SYMBOL='BQC', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'BBQCoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/BBQCoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.bbqcoin'), 'bbqcoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://bbq.cryptocoinexplorer.com/block/', ADDRESS_EXPLORER_URL_PREFIX='http://bbq.cryptocoinexplorer.com/address/', SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1), DUMB_SCRYPT_DIFF=2**16, ), mincoin=math.Object( P2P_PREFIX='fbc0b6db'.decode('hex'), P2P_PORT=9772, ADDRESS_VERSION=50, RPC_PORT=9771, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'mincoinaddress' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 2*100000000 >> (height + 1)//105000, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=60, # s targetspacing SYMBOL='MNC', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Mincoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Mincoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.mincoin'), 'mincoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://d.evco.in/abe/block/', ADDRESS_EXPLORER_URL_PREFIX='http://d.evco.in/abe/address/', SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1), DUMB_SCRYPT_DIFF=2**12, ), royalcoin=math.Object( P2P_PREFIX='fbc0b6db'.decode('hex'), P2P_PORT=18312, ADDRESS_VERSION=60, RPC_PORT=18311, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'royalcoinaddress' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 100*100000000 >> (height + 1)//1080000, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=60, # s targetspacing SYMBOL='RYC', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Royalcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Royalcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.royalcoin'), 'royalcoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://d.evco.in/abe/block/', ADDRESS_EXPLORER_URL_PREFIX='http://d.evco.in/abe/address/', SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1), DUMB_SCRYPT_DIFF=2**12, ), franko=math.Object( P2P_PREFIX='fbc0b6db'.decode('hex'), P2P_PORT=9556, ADDRESS_VERSION=35, RPC_PORT=9556, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'frankoaddress' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 1*10000000 >> (height + 1)//1080000, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=30, # s targetspacing SYMBOL='FRK', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'franko') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/franko/') if platform.system() == 'Darwin' else os.path.expanduser('~/.franko'), 'franko.conf'), BLOCK_EXPLORER_URL_PREFIX='http://d.evco.in/abe/block/', ADDRESS_EXPLORER_URL_PREFIX='http://d.evco.in/abe/address/', SANE_TARGET_RANGE=(2**256//100000000 - 1, 2**256//1000 - 1), DUMB_SCRYPT_DIFF=2**16, ), gldcoin=math.Object( P2P_PREFIX='fbc0b6db'.decode('hex'), P2P_PORT=8384, ADDRESS_VERSION=32, RPC_PORT=8909, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'gldcoinaddress' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 100*100000000 >> (height + 1)//673700, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=90, # s SYMBOL='GLD', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'gldcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/gldcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.gldcoin'), 'gldcoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://gld.cryptocoinexplorer.com//block/', ADDRESS_EXPLORER_URL_PREFIX='http://gld.cryptocoinexplorer.com//address/', SANE_TARGET_RANGE=(2**256//2**32//1000 - 1, 2**256//2**32 - 1), DUMB_SCRYPT_DIFF=2**16, ), anoncoin=math.Object( P2P_PREFIX='facabada'.decode('hex'), P2P_PORT=1337, ADDRESS_VERSION=23, RPC_PORT=8909, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'anoncoinaddress' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 42*100000000 >> (height + 1)//4200000, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=120, # s SYMBOL='ANC', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'anoncoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Anoncoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.anoncoin'), 'anoncoin.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=2**16, ), bytecoin=math.Object( P2P_PREFIX=& Title: Re: networks.py for AnonCoin P2Pool (or any AltCoin) Post by: btc4ever on December 10, 2013, 06:56:39 PM looks like the 2nd file got cut off in your copy / paste.
Title: Re: networks.py for AnonCoin P2Pool (or any AltCoin) Post by: erk on January 23, 2014, 12:22:04 AM I am not finding any Worldcoin peers with P2P_PORT=23620 are you sure that the correct port?
|