Bitcoin Forum
May 23, 2024, 02:32:37 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: lotto coin setup help  (Read 1009 times)
orddie (OP)
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
January 30, 2014, 10:24:18 PM
 #1

Hi All,

I'm trying to setup a lotto pool for my rigs to connect to verse pooled.   Thus far, i only have one talking directly to my wallet and things appear to be going okay.  I'm trying to setup a program that will allow my other 5 rigs to mine lotto

so..  I tried p2pool and when i ./run_p2pool.py --net lottocoin  im getting
2014-01-30 17:15:18.362871 Testing bitcoind RPC connection to 'http://127.0.0.1:16384/' with username 'ottocoinrpc'...
2014-01-30 17:15:18.365503 >     Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!

my p2pool/networks.py
Code:
lottocoin=math.Object(
        PARENT=networks.nets['lottocoin'],
        SHARE_PERIOD=5, # seconds
        CHAIN_LENGTH=24*60*60//10, # shares
        REAL_CHAIN_LENGTH=24*60*60//10, # shares
        TARGET_LOOKBEHIND=200, # shares
        SPREAD=60, # blocks
        IDENTIFIER='e037d5b8c6923410'.decode('hex'),
        PREFIX='7208c1a53ef629b0'.decode('hex'),
        P2P_PORT=3338,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=3337,
        BOOTSTRAP_ADDRS=''.split(' '),
        ANNOUNCE_CHANNEL='#p-alt',
        VERSION_CHECK=lambda v: True,
    ),

my p2pool/bitcoin/networks.py
Code:
lottocoin=math.Object(
        P2P_PREFIX='a5fdb6c1'.decode('hex'),
        P2P_PORT=16383,
        ADDRESS_VERSION=49,
        RPC_PORT=16384,
        RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'LottoCoin address' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        )),
        SUBSIDY_FUNC=lambda height: 50*100000000 >> (height + 1)//259200,
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
        BLOCK_PERIOD=150, # s
        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/',
        SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
        DUMB_SCRYPT_DIFF=2**16,
    ),


orddie (OP)
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
January 31, 2014, 11:07:29 AM
 #2

shameless bump.  can anyone help out?
orddie (OP)
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
January 31, 2014, 03:13:24 PM
 #3

Got a bit further.  am currently stuck on

Code:
2014-01-31 10:08:16.772263 Testing bitcoind RPC connection to 'http://127.0.0.1:16384/' with username 'ottocoinrpc'...
2014-01-31 10:08:16.782262     ...success!
2014-01-31 10:08:16.782523     Current block hash: 5d174ae4704560e4560573093ab9914dcf9fa38cc43ab5e74fb9aa0de61ab08d
2014-01-31 10:08:16.782603     Current block height: 145294
2014-01-31 10:08:16.782666
2014-01-31 10:08:16.782735 Testing bitcoind P2P connection to '127.0.0.1:16383'...
2014-01-31 10:08:21.783550     ...taking a while. Common reasons for this include all of bitcoind's connection slots being used...
orddie (OP)
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
January 31, 2014, 10:29:40 PM
 #4

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,
    ),
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!