i'm trying to setup p2pool.. no luck
p2pool/bitcoin/networks.py:
twecoin=math.Object(
P2P_PREFIX='0b110907'.decode('hex'),
P2P_PORT=3011,
ADDRESS_VERSION=65,
RPC_PORT=3009,
RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
'twecoinaddress' in (yield bitcoind.rpc_help()) and
not (yield bitcoind.rpc_getinfo())['testnet']
)),
SUBSIDY_FUNC=lambda height: 50*100000000 >> (height + 1)//210000,
POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('twehash').getPoWHash(data)),
BLOCK_PERIOD=120, # s
SYMBOL='TWE',
CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Twecoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Twecoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.twecoin'), 'twecoin.conf'),
BLOCK_EXPLORER_URL_PREFIX='http://twechain.info/block/',
ADDRESS_EXPLORER_URL_PREFIX='http://twecoin.info/address/',
TX_EXPLORER_URL_PREFIX='http://twecoin.info/tx/',
SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
DUMB_SCRYPT_DIFF=2**16,
DUST_THRESHOLD=0.03e8,
),
p2pool/networks.py:
twecoin=math.Object(
PARENT=networks.nets['twecoin'],
SHARE_PERIOD=15, # seconds
CHAIN_LENGTH=24*60*60//10, # shares
REAL_CHAIN_LENGTH=24*60*60//10, # shares
TARGET_LOOKBEHIND=200, # shares
SPREAD=3, # blocks
IDENTIFIER='a031dbe1cc921490'.decode('hex'),
PREFIX='9208e1a13afc12f1'.decode('hex'),
P2P_PORT=3012,
MIN_TARGET=0,
MAX_TARGET=2**256//2**20 - 1,
PERSIST=False,
WORKER_PORT=3013,
BOOTSTRAP_ADDRS='nisui.dream.org.il'.split(' '),
ANNOUNCE_CHANNEL='#p2pool-twe',
VERSION_CHECK=lambda v: False,
),
when trying to run -
$ python run_p2pool.py --net twecoin
Twisted doesn't have abortConnection! Upgrade to a newer version of Twisted to avoid memory leaks!
Pausing for 3 seconds...
2014-04-04 16:39:34.754473 p2pool (version 13.4-24-gf0eeb48-dirty)
2014-04-04 16:39:34.754611
2014-04-04 16:39:34.754797 Testing bitcoind RPC connection to 'http://127.0.0.1:3009/' with username 'u'...
2014-04-04 16:39:34.770859 ...success!
2014-04-04 16:39:34.770964 Current block hash: ed5f63a620f51c2703f547ac3dafd9b56324a005e59e8f645e30f50
2014-04-04 16:39:34.771092 Current block height: 4197
2014-04-04 16:39:34.771155
2014-04-04 16:39:34.771332 Testing bitcoind P2P connection to '127.0.0.1:3011'...
2014-04-04 16:39:39.772631 ...taking a while. Common reasons for this include all of bitcoind's connection slots being used...