Hey All,
I have been trying to set up a p2pool pool and have tried to edit the networks.py and bitcoin/networks.py files to match settings.
I have managed to get most of the settings from the source code of piggycoind but I am still receiving an error when connecting to RPC port whether its port 44481 or 44480
and yes, piggycoind is running with the following settings
rpcuser=user
rpcpassword=password
rpcallowip=127.0.0.1
daemon=1
listen=1
server=1
addnode=85.247.160.224
addnode=piggycha.in
addnode=168.144.97.93
~/p2pool/run_p2pool.py --net piggycoin --address 7J9mSxfamLPuybq92NJAGsLMTnmGBjMuYS user password
2014-03-06 18:21:10.842456 p2pool (version 13.4-12-gc191dd2-dirty)
2014-03-06 18:21:10.842552
2014-03-06 18:21:10.842603 Testing bitcoind RPC connection to '
http://127.0.0.1:44481/' with username 'user'...
2014-03-06 18:21:40.848845 > Error while checking Bitcoin connection:
2014-03-06 18:21:40.848960 > Traceback (most recent call last):
2014-03-06 18:21:40.848998 > Failure: twisted.internet.defer.TimeoutError: Getting
http://127.0.0.1:44481/ took longer than 30 seconds.
my networks.py file
piggycoin=math.Object(
PARENT=networks.nets['piggycoin'],
SHARE_PERIOD=15, # seconds
CHAIN_LENGTH=24*60*60//10, # shares
REAL_CHAIN_LENGTH=24*60*60//10, # shares
TARGET_LOOKBEHIND=200, # shares
SPREAD=15, # blocks
IDENTIFIER='fc70035c7a81bc6f'.decode('hex'),
PREFIX='2472ef181efcd37b'.decode('hex'),
P2P_PORT=4481,
MIN_TARGET=0,
MAX_TARGET=2**256//2**20 - 1,
PERSIST=False,
WORKER_PORT=4482,
BOOTSTRAP_ADDRS=''.split(' '),
),
my bitcoin/networks.py file
piggycoin=math.Object(
P2P_PREFIX='fbc0b6db'.decode('hex'),
P2P_PORT=44480,
ADDRESS_VERSION=15,
RPC_PORT=44481,
RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
'piggycoinaddress' in (yield bitcoind.rpc_help()) and
(yield bitcoind.rpc_getinfo())['testnet']
)),
SUBSIDY_FUNC=lambda height: 4000*21000000,
POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
BLOCK_PERIOD=60, # s
SYMBOL='PIG',
CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Piggycoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Piggycoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.piggycoin'), 'piggycoin.conf'),
BLOCK_EXPLORER_URL_PREFIX='
http://piggycha.in/chain/Piggycoin',
ADDRESS_EXPLORER_URL_PREFIX='
http://piggycha.in/chain/Piggycoin',
TX_EXPLORER_URL_PREFIX='
http://piggycha.in/chain/Piggycoin',
SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
DUMB_SCRYPT_DIFF=2**16,
DUST_THRESHOLD=0.03e8,
),
Thank you for any help you may provide, please also let me know if you see any settings that may be incorrect.