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?