jtoomim / p2pool

Peer-to-peer Bitcoin mining pool
https://github.com/jtoomim/p2pool/
GNU General Public License v3.0
37 stars 45 forks source link

exceptions.KeyError: 'ismine' #40

Closed arruah closed 2 years ago

arruah commented 5 years ago

After run this command
pypy run_p2pool.py --net bitcoincash --bitcoind-config-path /opt/bch/bitcoin.conf --allow-obsolete-bitcoind I got the error:
Fatal error: Traceback (most recent call last): File "/usr/local/lib/pypy2.7/dist-packages/Twisted-17.9.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 567, in _startRunCallbacks self._runCallbacks() File "/usr/local/lib/pypy2.7/dist-packages/Twisted-17.9.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 653, in _runCallbacks current.result = callback(current.result, *args, **kw) File "/usr/local/lib/pypy2.7/dist-packages/Twisted-17.9.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 1442, in gotResult _inlineCallbacks(r, g, deferred) File "/usr/local/lib/pypy2.7/dist-packages/Twisted-17.9.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 1386, in _inlineCallbacks result = g.send(result) --- <exception caught here> --- File "/home/kamren/p2pool/p2pool/main.py", line 138, in main if not res['isvalid'] or not res['ismine']: exceptions.KeyError: 'ismine'

jtoomim commented 5 years ago

I suspect that if you specify a default mining address with the --address xxxxxxxxxxx command-line option, this problem will go away. But this does look like a bug, so I'm leaving the issue open until it's fixed.

arruah commented 5 years ago

When I try pypy run_p2pool.py --net bitcoincash --bitcoind-config-path /opt/bch/bitcoin.conf --coinbtext="p2pcash.kz" --logfile=p2pool.log --address 212.19.134.154 I got the error
run_p2pool.py: error: error parsing address: ValueError('invalid addr',)

jtoomim commented 4 years ago

no, --address is for a Bitcoin Cash address, not an IP address. E.g. --address qp2g5zsxs2238m0s593j8yce2k2l42qhfcvwnylmxh.

mansilladev commented 2 years ago

Was the original issue reported here fixed in https://github.com/jtoomim/p2pool/pull/65 ?

jtoomim commented 2 years ago

Seems like it.