Bitcoin Forum
May 03, 2024, 04:43:07 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: datacoin p2pool set up in faliled  (Read 2178 times)
helloword2013 (OP)
Sr. Member
****
Offline Offline

Activity: 333
Merit: 250


View Profile
November 24, 2013, 05: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?
1714711387
Hero Member
*
Offline Offline

Posts: 1714711387

View Profile Personal Message (Offline)

Ignore
1714711387
Reply with quote  #2

1714711387
Report to moderator
1714711387
Hero Member
*
Offline Offline

Posts: 1714711387

View Profile Personal Message (Offline)

Ignore
1714711387
Reply with quote  #2

1714711387
Report to moderator
You can see the statistics of your reports to moderators on the "Report to moderator" pages.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714711387
Hero Member
*
Offline Offline

Posts: 1714711387

View Profile Personal Message (Offline)

Ignore
1714711387
Reply with quote  #2

1714711387
Report to moderator
1714711387
Hero Member
*
Offline Offline

Posts: 1714711387

View Profile Personal Message (Offline)

Ignore
1714711387
Reply with quote  #2

1714711387
Report to moderator
1714711387
Hero Member
*
Offline Offline

Posts: 1714711387

View Profile Personal Message (Offline)

Ignore
1714711387
Reply with quote  #2

1714711387
Report to moderator
mux
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
November 24, 2013, 05:33:53 PM
 #2

P2Pool does not support DTC yet AFAIK?

BETARIGS.COM - Leasing a rig is as simple as adding a pool!
Bitrated user: Mux.
guugll
Full Member
***
Offline Offline

Activity: 190
Merit: 100



View Profile WWW
November 24, 2013, 07: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,
    ),

helloword2013 (OP)
Sr. Member
****
Offline Offline

Activity: 333
Merit: 250


View Profile
November 25, 2013, 02:59:57 AM
 #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
cheetah3
Member
**
Offline Offline

Activity: 76
Merit: 10


View Profile
December 29, 2013, 07:00:33 AM
Last edit: December 29, 2013, 07:12:58 AM by cheetah3
 #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!

Create new AltCoins, update existing. Please pm with proposals. BTC: 1LbVvrNZAb3RB8fgHkc93PHkMKUsbdDgsq
helloword2013 (OP)
Sr. Member
****
Offline Offline

Activity: 333
Merit: 250


View Profile
January 08, 2014, 03:50:31 AM
 #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.
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!