BCH don't start
Opened this issue ยท 10 comments
Hello! Can't run p2pool with Bitcoin Cash. Here is the log on startup:
# pypy run_p2pool.py --net bitcoincash --bitcoind-config-path /root/.bitcoin/bitcoin.conf
2022-06-13 23:16:10.734485 p2pool (version 16.0-200-g9eaae22)
2022-06-13 23:16:10.734740
2022-06-13 23:16:10.734939 Testing bitcoind RPC connection to 'http://127.0.0.1:8332/' with username 'bch'...
2022-06-13 23:16:10.946342 ...success!
2022-06-13 23:16:10.946568 Current block hash: 643c01c8ffe2d6d55667e3de5d059f4fa1b3e07e2b332cb
2022-06-13 23:16:10.946725 Current block height: 744356
2022-06-13 23:16:10.946864
2022-06-13 23:16:10.947050 Testing bitcoind P2P connection to '127.0.0.1:8333'...
2022-06-13 23:16:10.951640 ...success!
2022-06-13 23:16:10.951795
2022-06-13 23:16:10.951979 Determining payout address...
2022-06-13 23:16:10.952167 Getting payout address from bitcoind...
Error getting payout address from bitcoind:
Traceback (most recent call last):
File "/usr/local/lib/pypy2.7/dist-packages/Twisted-15.4.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 588, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/local/lib/pypy2.7/dist-packages/Twisted-15.4.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 1184, in gotResult
_inlineCallbacks(r, g, deferred)
File "/usr/local/lib/pypy2.7/dist-packages/Twisted-15.4.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 1126, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/local/lib/pypy2.7/dist-packages/Twisted-15.4.0-py2.7-linux-x86_64.egg/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
--- <exception caught here> ---
File "/root/p2pool/p2pool/p2pool/util/deferral.py", line 41, in f
result = yield func(*args, **kwargs)
File "/usr/local/lib/pypy2.7/dist-packages/Twisted-15.4.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 1126, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/local/lib/pypy2.7/dist-packages/Twisted-15.4.0-py2.7-linux-x86_64.egg/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/root/p2pool/p2pool/p2pool/util/jsonrpc.py", line 133, in _http_do
raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None))
p2pool.util.jsonrpc.NarrowError: -32601 Method not found
# bitcoin-cli -version
Bitcoin Cash Node RPC client version v24.1.0-unk
Can you help me?
It looks like there is some issue with getting an address from BCHN. Try adding a default payout address via the --address
command-line option.
Thank you! Started!
In the process of work, sometimes such messages appear
2022-06-14 20:01:17.853079 RECV inv 01a094000051de657aed3b9fe7f7698be2ffc3b2b36a3cb0edd6645de59a5f58ad3c74efbf
Error handling message: (see RECV line)
Traceback (most recent call last):
File "/usr/local/lib/pypy2.7/dist-packages/Twisted-15.4.0-py2.7-linux-x86_64.egg/twisted/internet/tcp.py", line 209, in doRead
return self._dataReceived(data)
File "/usr/local/lib/pypy2.7/dist-packages/Twisted-15.4.0-py2.7-linux-x86_64.egg/twisted/internet/tcp.py", line 215, in _dataReceived
rval = self.protocol.dataReceived(data)
File "/root/p2pool/p2pool/p2pool/util/p2protocol.py", line 27, in dataReceived
self.dataReceived2(data)
File "/root/p2pool/p2pool/p2pool/util/datachunker.py", line 40, in _DataChunker
wants = receiver.send(buf.get(wants))
--- <exception caught here> ---
File "/root/p2pool/p2pool/p2pool/util/p2protocol.py", line 57, in dataReceiver
self.packetReceived(command, type_.unpack(payload, self.ignore_trailing_payload))
File "/root/p2pool/p2pool/p2pool/util/pack.py", line 55, in unpack
obj = self._unpack(data, ignore_trailing)
File "/root/p2pool/p2pool/p2pool/util/pack.py", line 42, in _unpack
obj = self.read(data)
File "/root/p2pool/p2pool/p2pool/util/pack.py", line 280, in read
item[key] = type_.read(file)
File "/root/p2pool/p2pool/p2pool/util/pack.py", line 157, in read
res = [self.type.read(file) for i in xrange(length)]
File "/root/p2pool/p2pool/p2pool/util/pack.py", line 280, in read
item[key] = type_.read(file)
File "/root/p2pool/p2pool/p2pool/util/pack.py", line 139, in read
raise ValueError('enum data (%r) not in pack_to_unpack (%r)' % (data, self.pack_to_unpack))
exceptions.ValueError: enum data (38048) not in pack_to_unpack ({1: 'tx', 2: 'block'})
What could be causing this?
What could be causing this?
That's probably just an inv
for a Compact Block (value=4) on the BCH p2p network. I'm guessing that happens right after a new block is found on the BCH network, right?
It's harmless and safe to ignore.
I'm still watching the logs today. I have not yet seen the analogy of errors in logs and a new block in the network of BCH. Thanks for the answer!
I have another question: if I run my node p2pool with a donation option, Will you receive a block reward or someone else?
The donations go to Forrest Voigt (forrestv), the original author of p2pool. As far as I have seen, he hasn't moved any of his donations since 2013, and currently has 17.7 BTC, 17.0 BCH, and 344 LTC sitting around.
I started my node p2pool with donation 1%. Let him(forrestv) be paid, the main thing is that the project p2pool lives and develops. Thanks for the help!
FWIW, forrestv's last contributions were from 2016.
The donations go to Forrest Voigt (forrestv), the original author of p2pool. As far as I have seen, he hasn't moved any of his donations since 2013, and currently has 17.7 BTC, 17.0 BCH, and 344 LTC sitting around.
Yes and BSV, XEC and many many others. Wherever it pubkey is used