Author

Topic: datacoin p2pool set up in faliled (Read 2178 times)

sr. member
Activity: 333
Merit: 250
January 07, 2014, 11:50:31 PM
#6
Hi guys!
Did you found the way how to resolve your error?

I trying to port coin and have same error too.
Ports are correct, I found real values inside wallet source protocol.h file.
Testnet ports are correct now too.

Already have set different ports in bitcoin/networks.py and /networks.py files.
in bitcoin/networks.py I have real values from wallet source:
        P2P_PORT=13334
        RPC_PORT=13333
and in networks.py I have set self values for p2pool network:
        P2P_PORT=14446,
        WORKER_PORT=14447,

When I run p2pool, have same error ">Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!"

Same time solo mining working good. Thats strange.

Anyone have an ideas?
Thanks!
With I mine in rpool I found it's submit share and get work protocol
but I found no way to resolve my error.
member
Activity: 76
Merit: 10
December 29, 2013, 03:00:33 AM
#5
Hi guys!
Did you found the way how to resolve your error?

I trying to port coin and have same error too.
Ports are correct, I found real values inside wallet source protocol.h file.
Testnet ports are correct now too.

Already have set different ports in bitcoin/networks.py and /networks.py files.
in bitcoin/networks.py I have real values from wallet source:
        P2P_PORT=13334
        RPC_PORT=13333
and in networks.py I have set self values for p2pool network:
        P2P_PORT=14446,
        WORKER_PORT=14447,

When I run p2pool, have same error ">Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!"

Same time solo mining working good. Thats strange.

Anyone have an ideas?
Thanks!
sr. member
Activity: 333
Merit: 250
November 24, 2013, 10:59:57 PM
#4
1./p2pool/network.py:
    datacoin=math.Object(
        PARENT=networks.nets['datacoin'],
        SHARE_PERIOD=60, # seconds target spacing
        CHAIN_LENGTH=24*60*60//10, # shares
        REAL_CHAIN_LENGTH=24*60*60//10, # shares
        TARGET_LOOKBEHIND=70, # shares coinbase maturity
        SPREAD=60, # blocks
        IDENTIFIER=''.decode('hex'),
        PREFIX=''.decode('hex'),
        P2P_PORT=10087,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=10086,
        BOOTSTRAP_ADDRS='forre.st vps.forre.st'.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-alt',
        VERSION_CHECK=lambda v: True,
    ),
2./p2pool/bitcoin/network.py:
datacoin=math.Object(
        P2P_PREFIX='dbdedbd3'.decode('hex'),
        P2P_PORT=10087,
        ADDRESS_VERSION=30,
        RPC_PORT=10086,
        RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'datacoinaddress' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        )),
        SUBSIDY_FUNC=0,
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
        BLOCK_PERIOD=60, # s targetspacing
        SYMBOL='DTC',
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'datacoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/datacoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.datacoin'), 'datacoin.conf'),
        BLOCK_EXPLORER_URL_PREFIX='',
        ADDRESS_EXPLORER_URL_PREFIX='',
        SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
        DUMB_SCRYPT_DIFF=2**12,
    ),
3./p2pool/bitcoin/helper.py:
if 'lite' in net.NAME or 'feather' in net.NAME or 'data' in net.NAME:

after 1. 2. and 3. then: run_p2pool.py --datacoin
error occurred during it running,like this:
Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!
Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!
Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!
Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!
Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!
......
who can help me find errors?


the coin network is different from p2pool network - use another set of ports like

1./p2pool/network.py:
    datacoin=math.Object(
        PARENT=networks.nets['datacoin'],
        SHARE_PERIOD=60, # seconds target spacing
        CHAIN_LENGTH=24*60*60//10, # shares
        REAL_CHAIN_LENGTH=24*60*60//10, # shares
        TARGET_LOOKBEHIND=70, # shares coinbase maturity
        SPREAD=60, # blocks
        IDENTIFIER=''.decode('hex'),
        PREFIX=''.decode('hex'),
        P2P_PORT=10087,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=10086,
        BOOTSTRAP_ADDRS='forre.st vps.forre.st'.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-alt',
        VERSION_CHECK=lambda v: True,
    ),
2./p2pool/bitcoin/network.py:
datacoin=math.Object(
        P2P_PREFIX='dbdedbd3'.decode('hex'),
        P2P_PORT=20087,
        ADDRESS_VERSION=30,
        RPC_PORT=20086,
        RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'datacoinaddress' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        )),
        SUBSIDY_FUNC=0,
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
        BLOCK_PERIOD=60, # s targetspacing
        SYMBOL='DTC',
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'datacoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/datacoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.datacoin'), 'datacoin.conf'),
        BLOCK_EXPLORER_URL_PREFIX='',
        ADDRESS_EXPLORER_URL_PREFIX='',
        SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
        DUMB_SCRYPT_DIFF=2**12,
    ),
Thank you ,let me to have a try again
full member
Activity: 190
Merit: 100
November 24, 2013, 03:37:56 PM
#3
1./p2pool/network.py:
    datacoin=math.Object(
        PARENT=networks.nets['datacoin'],
        SHARE_PERIOD=60, # seconds target spacing
        CHAIN_LENGTH=24*60*60//10, # shares
        REAL_CHAIN_LENGTH=24*60*60//10, # shares
        TARGET_LOOKBEHIND=70, # shares coinbase maturity
        SPREAD=60, # blocks
        IDENTIFIER=''.decode('hex'),
        PREFIX=''.decode('hex'),
        P2P_PORT=10087,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=10086,
        BOOTSTRAP_ADDRS='forre.st vps.forre.st'.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-alt',
        VERSION_CHECK=lambda v: True,
    ),
2./p2pool/bitcoin/network.py:
datacoin=math.Object(
        P2P_PREFIX='dbdedbd3'.decode('hex'),
        P2P_PORT=10087,
        ADDRESS_VERSION=30,
        RPC_PORT=10086,
        RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'datacoinaddress' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        )),
        SUBSIDY_FUNC=0,
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
        BLOCK_PERIOD=60, # s targetspacing
        SYMBOL='DTC',
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'datacoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/datacoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.datacoin'), 'datacoin.conf'),
        BLOCK_EXPLORER_URL_PREFIX='',
        ADDRESS_EXPLORER_URL_PREFIX='',
        SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
        DUMB_SCRYPT_DIFF=2**12,
    ),
3./p2pool/bitcoin/helper.py:
if 'lite' in net.NAME or 'feather' in net.NAME or 'data' in net.NAME:

after 1. 2. and 3. then: run_p2pool.py --datacoin
error occurred during it running,like this:
Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!
Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!
Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!
Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!
Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!
......
who can help me find errors?


the coin network is different from p2pool network - use another set of ports like

1./p2pool/network.py:
    datacoin=math.Object(
        PARENT=networks.nets['datacoin'],
        SHARE_PERIOD=60, # seconds target spacing
        CHAIN_LENGTH=24*60*60//10, # shares
        REAL_CHAIN_LENGTH=24*60*60//10, # shares
        TARGET_LOOKBEHIND=70, # shares coinbase maturity
        SPREAD=60, # blocks
        IDENTIFIER=''.decode('hex'),
        PREFIX=''.decode('hex'),
        P2P_PORT=10087,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=10086,
        BOOTSTRAP_ADDRS='forre.st vps.forre.st'.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-alt',
        VERSION_CHECK=lambda v: True,
    ),
2./p2pool/bitcoin/network.py:
datacoin=math.Object(
        P2P_PREFIX='dbdedbd3'.decode('hex'),
        P2P_PORT=20087,
        ADDRESS_VERSION=30,
        RPC_PORT=20086,
        RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'datacoinaddress' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        )),
        SUBSIDY_FUNC=0,
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
        BLOCK_PERIOD=60, # s targetspacing
        SYMBOL='DTC',
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'datacoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/datacoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.datacoin'), 'datacoin.conf'),
        BLOCK_EXPLORER_URL_PREFIX='',
        ADDRESS_EXPLORER_URL_PREFIX='',
        SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
        DUMB_SCRYPT_DIFF=2**12,
    ),
mux
sr. member
Activity: 280
Merit: 250
November 24, 2013, 01:33:53 PM
#2
P2Pool does not support DTC yet AFAIK?
sr. member
Activity: 333
Merit: 250
November 24, 2013, 01:22:58 PM
#1
1./p2pool/network.py:
    datacoin=math.Object(
        PARENT=networks.nets['datacoin'],
        SHARE_PERIOD=60, # seconds target spacing
        CHAIN_LENGTH=24*60*60//10, # shares
        REAL_CHAIN_LENGTH=24*60*60//10, # shares
        TARGET_LOOKBEHIND=70, # shares coinbase maturity
        SPREAD=60, # blocks
        IDENTIFIER=''.decode('hex'),
        PREFIX=''.decode('hex'),
        P2P_PORT=10087,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=10086,
        BOOTSTRAP_ADDRS='forre.st vps.forre.st'.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-alt',
        VERSION_CHECK=lambda v: True,
    ),
2./p2pool/bitcoin/network.py:
datacoin=math.Object(
        P2P_PREFIX='dbdedbd3'.decode('hex'),
        P2P_PORT=10087,
        ADDRESS_VERSION=30,
        RPC_PORT=10086,
        RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'datacoinaddress' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        )),
        SUBSIDY_FUNC=0,
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
        BLOCK_PERIOD=60, # s targetspacing
        SYMBOL='DTC',
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'datacoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/datacoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.datacoin'), 'datacoin.conf'),
        BLOCK_EXPLORER_URL_PREFIX='',
        ADDRESS_EXPLORER_URL_PREFIX='',
        SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
        DUMB_SCRYPT_DIFF=2**12,
    ),
3./p2pool/bitcoin/helper.py:
if 'lite' in net.NAME or 'feather' in net.NAME or 'data' in net.NAME:

after 1. 2. and 3. then: run_p2pool.py --datacoin
error occurred during it running,like this:
Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!
Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!
Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!
Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!
Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!
......
who can help me find errors?
Jump to: