Post
Topic
Board Mining (Altcoins)
Re: lotto coin setup help
by
orddie
on 31/01/2014, 22:29:40 UTC
i have gotten much further and started mining.  however, im getting disconnected from the server...

in the lottocoin/debug.log im getting a bunch of
Code:
ProcessMessage(tx, 226 bytes) FAILED
ProcessMessages(tx, 226 bytes) : Exception 'CDataStream::read() : end of data' caught, normally caused by a message being shorter than its stated length
in my p2pool/networks.py
Code:
lottocoin=math.Object(
        PARENT=networks.nets['lottocoin'],
        SHARE_PERIOD=10, # seconds target spacing
        CHAIN_LENGTH=24*60*60//10, # shares
        REAL_CHAIN_LENGTH=24*60*60//10, # shares
        TARGET_LOOKBEHIND=50, # shares coinbase maturity
        SPREAD=90, # blocks
        IDENTIFIER='c037d5b8c6923410'.decode('hex'),
        PREFIX='c037d5b8c6923410'.decode('hex'),
        P2P_PORT=16388,
        MIN_TARGET=0,
                MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=9777, #point your minders here!
        BOOTSTRAP_ADDRS=''.split('106.68.178.29 173.170.114.141 84.251.79.48 77.250.109.205 109.189.121.207 86.10.189.4 178.210.194.182'),
        ANNOUNCE_CHANNEL='',
        VERSION_CHECK=lambda v: True,

in my p2pool/bitcoin/networks.py
Code:
lottocoin=math.Object(
        P2P_PREFIX='a5fdb6c1'.decode('hex'), # pulled from pchMessageStart[4] in main.cpp
        P2P_PORT=16383, #pulled from  GetDefaultPort in protocol.h
        ADDRESS_VERSION=49, #pulled from PUBKEY_ADDRESS in base58.h
        RPC_PORT=16384, #pulled from -rpcport in bitcoinrpc.cpp
        RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'lottocoinaddress' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        )), #lottocoinaddress found from dumpprivkey in rpcdump.cpp
        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='LOT',
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'lottocoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/lottocoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.lottocoin'), 'lottocoin.conf'),
        BLOCK_EXPLORER_URL_PREFIX='http://www.lottocoin.info/block/',
        ADDRESS_EXPLORER_URL_PREFIX='http://www.lottocoin.info/address/',
        TX_EXPLORER_URL_PREFIX='http://www.lottocoin.info/tx/',
        SANE_TARGET_RANGE=(2**256//100000000 - 1, 2**256//1000 - 1),
        DUMB_SCRYPT_DIFF=2**16,
    ),