Post
Topic
Board Altcoin Discussion
Re: [ANN][CNC][P2pool] - ChinaCoin (CHNCoin) P2Pool - 1% Fee - Stable and Fast!
by
Doxcade
on 08/01/2014, 18:43:15 UTC

Hay maybe a bit of help?

Setting up some P2pools, I have cnc working with newest chncoind (had to change the prefix id) but can't seem to connect to any other p2pools.
I know there are not many but if you could post your p2p_port and bootstrap your using. I added you in my bootstrap but wont connect.
Also check the code below and see if the identifier and prefix matches what your using.


Thanks!

Code:
chncoin=math.Object(
        PARENT=networks.nets['chncoin'],
        SHARE_PERIOD=15, # seconds
        CHAIN_LENGTH=12*60*60//10, # shares
        REAL_CHAIN_LENGTH=12*60*60//10, # shares
        TARGET_LOOKBEHIND=200, # shares
        SPREAD=30, # blocks
        IDENTIFIER='e137d5b8c6923410'.decode('hex'),
        PREFIX='7218c1a53ef629b0'.decode('hex'),
        P2P_PORT=12388,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=8800,
        BOOTSTRAP_ADDRS='42.2.216.54 cnc.crabdance.com'.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-chn',
        VERSION_CHECK=lambda v: True,
    ),
)

Code:
chncoin=math.Object(
        P2P_PREFIX='fdc2b8dd'.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,
    ),