If anyone could help,
I used both networks.py file from Rav's site. It has most of the coins that I need. I currently have the settings for litecoin, dogecoin, and worldcoin. I would like to run all 3, I tried to run commands to start up all 3. Dogecoin works fine:
screen -d -m -S dogep2pool ~/p2pool/run_p2pool.py --give-author 0 --net dogecoin --bitcoind-rpc-port 22555 dogecoinrpc rpcpassword=xxxxxxxxxxxxxxxx
Then when I try to run the same type of command to start litecoin:
screen -d -m -S litep2pool ~/p2pool/run_p2pool.py --give-author 0 --net litecoin --bitcoind-rpc-port 9334 litecoinrpc rpcpassword=xxxxxxxxxxxxxxxx
I get errors that keeps repeating:
Testing bitcoind RPC connection to '
http://127.0.0.1:9334/' with username 'litecoinrpc'...
2014-02-24 16:39:57.880662 > Error while checking Bitcoin connection:
2014-02-24 16:39:57.880713 > Traceback (most recent call last):
2014-02-24 16:39:57.880752 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
2014-02-24 16:39:57.880793 > current.result = callback(current.result, *args, **kw)
2014-02-24 16:39:57.880832 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
2014-02-24 16:39:57.880870 > _inlineCallbacks(r, g, deferred)
2014-02-24 16:39:57.880906 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2014-02-24 16:39:57.880944 > result = result.throwExceptionIntoGenerator(g)
2014-02-24 16:39:57.880983 > File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2014-02-24 16:39:57.881022 > return g.throw(self.type, self.value, self.tb)
2014-02-24 16:39:57.881058 > --- ---
2014-02-24 16:39:57.881092 > File "/home/pooladmin/p2pool/p2pool/util/deferral.py", line 41, in f
2014-02-24 16:39:57.881129 > result = yield func(*args, **kwargs)
2014-02-24 16:39:57.881164 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2014-02-24 16:39:57.881209 > result = result.throwExceptionIntoGenerator(g)
2014-02-24 16:39:57.881246 > File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2014-02-24 16:39:57.881285 > return g.throw(self.type, self.value, self.tb)
2014-02-24 16:39:57.881321 > File "/home/pooladmin/p2pool/p2pool/bitcoin/helper.py", line 13, in check
2014-02-24 16:39:57.881359 > if not (yield net.PARENT.RPC_CHECK(bitcoind)):
2014-02-24 16:39:57.881395 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2014-02-24 16:39:57.881435 > result = result.throwExceptionIntoGenerator(g)
2014-02-24 16:39:57.881471 > File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2014-02-24 16:39:57.881510 > return g.throw(self.type, self.value, self.tb)
2014-02-24 16:39:57.881546 > File "/home/pooladmin/p2pool/p2pool/bitcoin/networks.py", line 67, in
2014-02-24 16:39:57.881584 > 'litecoinaddress' in (yield bitcoind.rpc_help()) and
2014-02-24 16:39:57.881621 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2014-02-24 16:39:57.881930 > result = result.throwExceptionIntoGenerator(g)
2014-02-24 16:39:57.881967 > File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2014-02-24 16:39:57.882070 > return g.throw(self.type, self.value, self.tb)
2014-02-24 16:39:57.882108 > File "/home/pooladmin/p2pool/p2pool/util/jsonrpc.py", line 126, in _http_do
2014-02-24 16:39:57.882146 > raise e
2014-02-24 16:39:57.882181 > twisted.web.error.Error: 401 Authorization Required
Here is my litecoin.conf file:
server=1
daemon=1
rpcuser=litecoinrpc
rpcpassword=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
rpcallowip=127.0.0.1
rpcallowip=192.168.0.165
rpcport=9334
port=9335
gen=0
Here is the p2pool/networks.py file entry for litecoin:
litecoin=math.Object(
PARENT=networks.nets['litecoin'],
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='e037d5b8c6923410'.decode('hex'),
PREFIX='7208c1a53ef629b0'.decode('hex'),
P2P_PORT=9338,
MIN_TARGET=0,
MAX_TARGET=2**256//2**20 - 1,
PERSIST=True,
WORKER_PORT=9327,
BOOTSTRAP_ADDRS='forre.st vps.forre.st liteco.in 95.211.21.103 37.229.117.57 66.228.48.21 180.169.60.179 112.84.181.102 74.214.62.115 209.141.46.154 78.27.191.182 66.187.70.88 88.190.223.96 78.47.242.59 158.182.39.43 180.177.114.80 216.230.232.35 94.231.56.87 62.38.194.17 82.67.167.12 183.129.157.220 71.19.240.182 216.177.81.88 109.106.0.130 113.10.168.210 218.22.102.12 85.69.35.7:54396 201.52.162.167 95.66.173.110:8331 109.65.171.93 95.243.237.90 208.68.17.67 87.103.197.163 101.1.25.211 144.76.17.34 209.99.52.72 198.23.245.250 46.151.21.226 66.43.209.193 59.127.188.231 178.194.42.169 85.10.35.90 110.175.53.212 98.232.129.196 116.228.192.46 94.251.42.75 195.216.115.94 24.49.138.81 61.158.7.36 213.168.187.27 37.59.10.166 72.44.88.49 98.221.44.200 178.19.104.251 87.198.219.221 85.237.59.130:9310 218.16.251.86 151.236.11.119 94.23.215.27 60.190.203.228 176.31.208.222 46.163.105.201 198.84.186.74 199.175.50.102 188.142.102.15 202.191.108.46 125.65.108.19 15.185.107.232 108.161.131.248 188.116.33.39 78.142.148.62 69.42.217.130 213.110.14.23 185.10.51.18 74.71.113.207 77.89.41.253 69.171.153.219 58.210.42.10 174.107.165.198 50.53.105.6 116.213.73.50 83.150.90.211 210.28.136.11 86.58.41.122 70.63.34.88 78.155.217.76 68.193.128.182 198.199.73.40 193.6.148.18 188.177.188.189 83.109.6.82 204.10.105.113 64.91.214.180 46.4.74.44 98.234.11.149 71.189.207.226'.split(' '),
ANNOUNCE_CHANNEL='#p2pool-ltc',
VERSION_CHECK=lambda v: True,
VERSION_WARNING=lambda v: 'Upgrade Litecoin to >=0.8.5.1!' if v < 80501 else None,
Here is the p2pool/bitcoin/networks.py file:
litecoin=math.Object(
P2P_PREFIX='fbc0b6db'.decode('hex'),
P2P_PORT=9333,
ADDRESS_VERSION=48,
RPC_PORT=9332,
RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
'litecoinaddress' in (yield bitcoind.rpc_help()) and
not (yield bitcoind.rpc_getinfo())['testnet']
)),
SUBSIDY_FUNC=lambda height: 50*100000000 >> (height + 1)//840000,
POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
BLOCK_PERIOD=150, # s
SYMBOL='LTC',
CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Litecoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Litecoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.litecoin'), 'litecoin.conf'),
BLOCK_EXPLORER_URL_PREFIX='http://explorer.litecoin.net/block/',
ADDRESS_EXPLORER_URL_PREFIX='http://explorer.litecoin.net/address/',
TX_EXPLORER_URL_PREFIX='http://explorer.litecoin.net/tx/',
SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
DUMB_SCRYPT_DIFF=2**16,
DUST_THRESHOLD=0.03e8,
Any help would be so greatly appreaciated! Please leave your BTC or LTC wallet address.
Quick Update
Stopped dogecoin and attempted to start litecoin. - same error
Tried to restart dogecoin - now it gives the same error. wow, it's like viral...
I have been trying to walk through the code to see where it fails, it is in the inital RPC connection that can't be created.
Thanks