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

P2Pool is not compatible with latest Bitcoin core version? #57

Open xtc18 opened 2 years ago

xtc18 commented 2 years ago

Getting error below, any plans to make this compatible?

2022-03-16 21:19:05.848096 P2Pool: 21248 shares in chain (13930 verified/21252 total) Peers: 7 (1 incoming) 2022-03-16 21:19:05.848204 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ??? 2022-03-16 21:19:05.848236 Shares: 0 (0 orphan, 0 dead) Stale rate: ??? Efficiency: ??? Current payout: (0.0000)=0.0000 BTC 2022-03-16 21:19:05.848279 Pool: 408TH/s Stale rate: 1.6% Expected time to block: 9.2 years 2022-03-16 21:19:07.510267 Received good share: diff=2.79e+06 hash=000000000000025ec8711c5c89ba085accdd10e2ffd9eb3ff7cb45fd7eaa01ad miner=1HCfZtXnrds7drCe7PysTEHC67xtunfKjd 2022-03-16 21:19:10.393860 Unknown softforks found: set([u'taproot']) 2022-03-16 21:19:10.393983 Required softforks: [u'csv', u'!segwit', u'taproot'] Known: set(['bip65', 'csv', 'segwit']) Unhandled Error Traceback (most recent call last): File "/home/rob/btcpool/p2pool/main.py", line 722, in run reactor.run() File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1243, in run self.mainLoop() File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1252, in mainLoop self.runUntilCurrent() File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 878, in runUntilCurrent call.func(*call.args, *call.kw) --- --- File "/home/rob/btcpool/p2pool/bitcoin/stratum.py", line 75, in _send_work x, got_response = self.wb.get_work(self.wb.preprocess_request('' if self.username is None else self.username)) File "/home/rob/btcpool/p2pool/bitcoin/worker_interface.py", line 132, in get_work desired_pseudoshare_target, worker_ip, *args) File "/home/rob/btcpool/p2pool/work.py", line 278, in get_work raise jsonrpc.Error_for_code(-12345)(u'unknown rule activated') p2pool.util.jsonrpc.NarrowError: -12345 unknown rule activated

jtoomim commented 2 years ago

@Anandraj-Singh

jtoomim commented 2 years ago

Try adding 'taproot' in line 33 of p2pool/networks/bitcoin.py and line 20 of bitcoin_testnet.py.

https://github.com/jtoomim/p2pool/blob/master/p2pool/networks/bitcoin.py#L33

https://github.com/jtoomim/p2pool/blob/master/p2pool/networks/bitcoin_testnet.py#L20