Post
Topic
Board Pools
Re: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool
by
IconFirm
on 25/06/2017, 09:53:58 UTC

Thanks. I'll load it up as soon as I have some spare time & report back Smiley

Edit:  OK, I tried to set up p2pool using zetacoin, which I can mine no problem using the latest forestv version, but got this error on startup & was unable to connect:

2017-06-25 12:39:49.843352 > Unhandled Error
2017-06-25 12:39:49.843457 > Traceback (most recent call last):
2017-06-25 12:39:49.843488 >   File "/home/rig/p2pool-1mb/p2pool/main.py", line 669, in run
2017-06-25 12:39:49.843516 >     reactor.run()
2017-06-25 12:39:49.843555 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1192, in run
2017-06-25 12:39:49.843594 >     self.mainLoop()
2017-06-25 12:39:49.843642 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1201, in mainLoop
2017-06-25 12:39:49.843702 >     self.runUntilCurrent()
2017-06-25 12:39:49.843721 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 824, in runUntilCurrent
2017-06-25 12:39:49.843739 >     call.func(*call.args, **call.kw)
2017-06-25 12:39:49.843761 > --- ---
2017-06-25 12:39:49.843782 >   File "/home/rig/p2pool-1mb/p2pool/bitcoin/stratum.py", line 38, in _send_work
2017-06-25 12:39:49.843800 >     x, got_response = self.wb.get_work(*self.wb.preprocess_request('' if self.username is None else self.username))
2017-06-25 12:39:49.843819 >   File "/home/rig/p2pool-1mb/p2pool/bitcoin/worker_interface.py", line 129, in get_work
2017-06-25 12:39:49.843836 >     x, handler = self._inner.get_work(*args)
2017-06-25 12:39:49.843880 >   File "/home/rig/p2pool-1mb/p2pool/work.py", line 334, in get_work
2017-06-25 12:39:49.843904 >     base_subsidy=self.node.net.PARENT.SUBSIDY_FUNC(self.current_work.value['height']),
2017-06-25 12:39:49.843926 >   File "/home/rig/p2pool-1mb/p2pool/data.py", line 202, in generate_transaction
2017-06-25 12:39:49.843949 >     if desired_timestamp > previous_share.timestamp + 180:
2017-06-25 12:39:49.843979 > exceptions.AttributeError: 'NoneType' object has no attribute 'timestamp'
2017-06-25 12:39:49.934315 Peer 192.168.1.50:37428 says protocol version is 3200, client version 1
2017-06-25 12:39:54.665514 > Unhandled Error
2017-06-25 12:39:54.665604 > Traceback (most recent call last):
2017-06-25 12:39:54.665630 >   File "/home/rig/p2pool-1mb/p2pool/main.py", line 669, in run
2017-06-25 12:39:54.665652 >     reactor.run()
2017-06-25 12:39:54.665672 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1192, in run
2017-06-25 12:39:54.665693 >     self.mainLoop()
2017-06-25 12:39:54.665713 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1201, in mainLoop
2017-06-25 12:39:54.665736 >     self.runUntilCurrent()
2017-06-25 12:39:54.665755 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 824, in runUntilCurrent
2017-06-25 12:39:54.665796 >     call.func(*call.args, **call.kw)
2017-06-25 12:39:54.665816 > --- ---
2017-06-25 12:39:54.665836 >   File "/home/rig/p2pool-1mb/p2pool/bitcoin/stratum.py", line 38, in _send_work
2017-06-25 12:39:54.665856 >     x, got_response = self.wb.get_work(*self.wb.preprocess_request('' if self.username is None else self.username))
2017-06-25 12:39:54.665880 >   File "/home/rig/p2pool-1mb/p2pool/bitcoin/worker_interface.py", line 129, in get_work
2017-06-25 12:39:54.665901 >     x, handler = self._inner.get_work(*args)
2017-06-25 12:39:54.665921 >   File "/home/rig/p2pool-1mb/p2pool/work.py", line 334, in get_work
2017-06-25 12:39:54.665942 >     base_subsidy=self.node.net.PARENT.SUBSIDY_FUNC(self.current_work.value['height']),
2017-06-25 12:39:54.665959 >   File "/home/rig/p2pool-1mb/p2pool/data.py", line 202, in generate_transaction
2017-06-25 12:39:54.665979 >     if desired_timestamp > previous_share.timestamp + 180:
2017-06-25 12:39:54.665999 > exceptions.AttributeError: 'NoneType' object has no attribute 'timestamp'
2017-06-25 12:39:55.278487 Got new merged mining work!
2017-06-25 12:39:55.288591 Got new merged mining work!
2017-06-25 12:39:55.300866 Got new merged mining work!
2017-06-25 12:39:56.096555 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 1 (0 incoming)
2017-06-25 12:39:56.096729  Local: 0H/s in last 0.0 seconds Local dead on arrival: Huh Expected time to share: Huh
2017-06-25 12:40:20.833103 > Unhandled Error
2017-06-25 12:40:20.833193 > Traceback (most recent call last):
2017-06-25 12:40:20.833218 >   File "/home/rig/p2pool-1mb/p2pool/main.py", line 669, in run
2017-06-25 12:40:20.833240 >     reactor.run()
2017-06-25 12:40:20.833260 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1192, in run
2017-06-25 12:40:20.833281 >     self.mainLoop()
2017-06-25 12:40:20.833300 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1201, in mainLoop
2017-06-25 12:40:20.833324 >     self.runUntilCurrent()
2017-06-25 12:40:20.833343 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 824, in runUntilCurrent
2017-06-25 12:40:20.833382 >     call.func(*call.args, **call.kw)
2017-06-25 12:40:20.833402 > --- ---
2017-06-25 12:40:20.833421 >   File "/home/rig/p2pool-1mb/p2pool/bitcoin/stratum.py", line 38, in _send_work
2017-06-25 12:40:20.833451 >     x, got_response = self.wb.get_work(*self.wb.preprocess_request('' if self.username is None else self.username))
2017-06-25 12:40:20.833470 >   File "/home/rig/p2pool-1mb/p2pool/bitcoin/worker_interface.py", line 129, in get_work
2017-06-25 12:40:20.833487 >     x, handler = self._inner.get_work(*args)
2017-06-25 12:40:20.833505 >   File "/home/rig/p2pool-1mb/p2pool/work.py", line 334, in get_work
2017-06-25 12:40:20.833525 >     base_subsidy=self.node.net.PARENT.SUBSIDY_FUNC(self.current_work.value['height']),
2017-06-25 12:40:20.833545 >   File "/home/rig/p2pool-1mb/p2pool/data.py", line 202, in generate_transaction
2017-06-25 12:40:20.833564 >     if desired_timestamp > previous_share.timestamp + 180:
2017-06-25 12:40:20.833584 > exceptions.AttributeError: 'NoneType' object has no attribute 'timestamp'
2017-06-25 12:40:25.306398 Generating a share with 225 bytes (225 new) and 1 transactions (1 new)
2017-06-25 12:40:25.306716 > Unhandled Error
2017-06-25 12:40:25.306784 > Traceback (most recent call last):
2017-06-25 12:40:25.306809 >   File "/home/rig/p2pool-1mb/p2pool/main.py", line 669, in run
2017-06-25 12:40:25.306830 >     reactor.run()
2017-06-25 12:40:25.306848 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1192, in run
2017-06-25 12:40:25.306959 >     self.mainLoop()
2017-06-25 12:40:25.306982 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1201, in mainLoop
2017-06-25 12:40:25.307000 >     self.runUntilCurrent()
2017-06-25 12:40:25.307017 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 824, in runUntilCurrent
2017-06-25 12:40:25.307036 >     call.func(*call.args, **call.kw)
2017-06-25 12:40:25.307053 > --- ---
2017-06-25 12:40:25.307074 >   File "/home/rig/p2pool-1mb/p2pool/bitcoin/stratum.py", line 38, in _send_work
2017-06-25 12:40:25.307092 >     x, got_response = self.wb.get_work(*self.wb.preprocess_request('' if self.username is None else self.username))
2017-06-25 12:40:25.307110 >   File "/home/rig/p2pool-1mb/p2pool/bitcoin/worker_interface.py", line 129, in get_work
2017-06-25 12:40:25.307128 >     x, handler = self._inner.get_work(*args)
2017-06-25 12:40:25.307145 >   File "/home/rig/p2pool-1mb/p2pool/work.py", line 334, in get_work
2017-06-25 12:40:25.307162 >     base_subsidy=self.node.net.PARENT.SUBSIDY_FUNC(self.current_work.value['height']),
2017-06-25 12:40:25.307179 >   File "/home/rig/p2pool-1mb/p2pool/data.py", line 202, in generate_transaction
2017-06-25 12:40:25.307197 >     if desired_timestamp > previous_share.timestamp + 180:
2017-06-25 12:40:25.307213 > exceptions.AttributeError: 'NoneType' object has no attribute 'timestamp'
2017-06-25 12:40:26.097103 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 1 (0 incoming)
2017-06-25 12:40:26.097290  Local: 0H/s in last 0.0 seconds Local dead on arrival: Huh Expected time to share: Huh
2017-06-25 12:40:42.506989 Got new merged mining work!
2017-06-25 12:40:48.546604 Got new merged mining work!
2017-06-25 12:40:51.244188 Peer 192.168.1.50:38916 says protocol version is 3200, client version 1
2017-06-25 12:40:51.878535 > Unhandled Error
2017-06-25 12:40:51.878624 > Traceback (most recent call last):
2017-06-25 12:40:51.878647 >   File "/home/rig/p2pool-1mb/p2pool/main.py", line 669, in run
2017-06-25 12:40:51.878668 >     reactor.run()
2017-06-25 12:40:51.878689 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1192, in run
2017-06-25 12:40:51.878710 >     self.mainLoop()
2017-06-25 12:40:51.878730 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1201, in mainLoop
2017-06-25 12:40:51.878750 >     self.runUntilCurrent()
2017-06-25 12:40:51.878773 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 824, in runUntilCurrent
2017-06-25 12:40:51.878794 >     call.func(*call.args, **call.kw)
2017-06-25 12:40:51.878812 > --- ---
2017-06-25 12:40:51.878829 >   File "/home/rig/p2pool-1mb/p2pool/bitcoin/stratum.py", line 38, in _send_work
2017-06-25 12:40:51.878848 >     x, got_response = self.wb.get_work(*self.wb.preprocess_request('' if self.username is None else self.username))
2017-06-25 12:40:51.878866 >   File "/home/rig/p2pool-1mb/p2pool/bitcoin/worker_interface.py", line 129, in get_work
2017-06-25 12:40:51.878920 >     x, handler = self._inner.get_work(*args)
2017-06-25 12:40:51.878944 >   File "/home/rig/p2pool-1mb/p2pool/work.py", line 334, in get_work
2017-06-25 12:40:51.878962 >     base_subsidy=self.node.net.PARENT.SUBSIDY_FUNC(self.current_work.value['height']),
2017-06-25 12:40:51.878980 >   File "/home/rig/p2pool-1mb/p2pool/data.py", line 202, in generate_transaction
2017-06-25 12:40:51.879004 >     if desired_timestamp > previous_share.timestamp + 180:
2017-06-25 12:40:51.879024 > exceptions.AttributeError: 'NoneType' object has no attribute 'timestamp'
2017-06-25 12:40:56.110247 > Unhandled Error
2017-06-25 12:40:56.110338 > Traceback (most recent call last):
2017-06-25 12:40:56.110362 >   File "/home/rig/p2pool-1mb/p2pool/main.py", line 669, in run
2017-06-25 12:40:56.110384 >     reactor.run()
2017-06-25 12:40:56.110405 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1192, in run
2017-06-25 12:40:56.110425 >     self.mainLoop()
2017-06-25 12:40:56.110445 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1201, in mainLoop
2017-06-25 12:40:56.110468 >     self.runUntilCurrent()
2017-06-25 12:40:56.110486 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 824, in runUntilCurrent
2017-06-25 12:40:56.110528 >     call.func(*call.args, **call.kw)
2017-06-25 12:40:56.110548 > --- ---
2017-06-25 12:40:56.110567 >   File "/home/rig/p2pool-1mb/p2pool/bitcoin/stratum.py", line 38, in _send_work
2017-06-25 12:40:56.110588 >     x, got_response = self.wb.get_work(*self.wb.preprocess_request('' if self.username is None else self.username))
2017-06-25 12:40:56.110612 >   File "/home/rig/p2pool-1mb/p2pool/bitcoin/worker_interface.py", line 129, in get_work
2017-06-25 12:40:56.110633 >     x, handler = self._inner.get_work(*args)
2017-06-25 12:40:56.110653 >   File "/home/rig/p2pool-1mb/p2pool/work.py", line 334, in get_work
2017-06-25 12:40:56.110673 >     base_subsidy=self.node.net.PARENT.SUBSIDY_FUNC(self.current_work.value['height']),
2017-06-25 12:40:56.110693 >   File "/home/rig/p2pool-1mb/p2pool/data.py", line 202, in generate_transaction
2017-06-25 12:40:56.110725 >     if desired_timestamp > previous_share.timestamp + 180:
2017-06-25 12:40:56.110745 > exceptions.AttributeError: 'NoneType' object has no attribute 'timestamp'
2017-06-25 12:40:56.111196 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 1 (0 incoming)
2017-06-25 12:40:56.111282  Local: 0H/s in last 0.0 seconds Local dead on arrival: Huh Expected time to share: Huh
2017-06-25 12:40:56.564996 Got new merged mining work!
2017-06-25 12:40:57.311776 > Error in DeferredResource handler:
2017-06-25 12:40:57.311869 > Traceback (most recent call last):
2017-06-25 12:40:57.311896 >   File "/home/rig/p2pool-1mb/p2pool/util/deferred_resource.py", line 24, in render
2017-06-25 12:40:57.311922 >     defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error)
2017-06-25 12:40:57.311948 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 139, in maybeDeferred
2017-06-25 12:40:57.311973 >     result = f(*args, **kw)
2017-06-25 12:40:57.311994 >   File "/usr/lib/python2.7/dist-packages/twisted/web/resource.py", line 250, in render
2017-06-25 12:40:57.312015 >     return m(request)
2017-06-25 12:40:57.312034 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1237, in unwindGenerator
2017-06-25 12:40:57.312061 >     return _inlineCallbacks(None, gen, Deferred())
2017-06-25 12:40:57.312085 > --- ---
2017-06-25 12:40:57.312106 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1099, in _inlineCallbacks
2017-06-25 12:40:57.312132 >     result = g.send(result)
2017-06-25 12:40:57.312152 >   File "/home/rig/p2pool-1mb/p2pool/web.py", line 198, in render_GET
2017-06-25 12:40:57.312181 >     res = yield self.func(*self.args)
2017-06-25 12:40:57.312203 >   File "/home/rig/p2pool-1mb/p2pool/web.py", line 347, in
2017-06-25 12:40:57.312225 >     new_root.putChild('best_share_hash', WebInterface(lambda: '%064x' % node.best_share_var.value))
2017-06-25 12:40:57.312248 > exceptions.TypeError: %x format: a number is required, not NoneType
2017-06-25 12:41:02.694283 Got new merged mining work!
2017-06-25 12:41:22.863380 > Unhandled Error
2017-06-25 12:41:22.863468 > Traceback (most recent call last):
2017-06-25 12:41:22.863498 >   File "/home/rig/p2pool-1mb/p2pool/main.py", line 669, in run
2017-06-25 12:41:22.863520 >     reactor.run()
2017-06-25 12:41:22.863542 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1192, in run
2017-06-25 12:41:22.863563 >     self.mainLoop()
2017-06-25 12:41:22.863584 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1201, in mainLoop
2017-06-25 12:41:22.863605 >     self.runUntilCurrent()
2017-06-25 12:41:22.863624 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 824, in runUntilCurrent
2017-06-25 12:41:22.863645 >     call.func(*call.args, **call.kw)
2017-06-25 12:41:22.863681 > --- ---
2017-06-25 12:41:22.863703 >   File "/home/rig/p2pool-1mb/p2pool/bitcoin/stratum.py", line 38, in _send_work
2017-06-25 12:41:22.863724 >     x, got_response = self.wb.get_work(*self.wb.preprocess_request('' if self.username is None else self.username))
2017-06-25 12:41:22.863747 >   File "/home/rig/p2pool-1mb/p2pool/bitcoin/worker_interface.py", line 129, in get_work
2017-06-25 12:41:22.863769 >     x, handler = self._inner.get_work(*args)
2017-06-25 12:41:22.863793 >   File "/home/rig/p2pool-1mb/p2pool/work.py", line 334, in get_work
2017-06-25 12:41:22.863814 >     base_subsidy=self.node.net.PARENT.SUBSIDY_FUNC(self.current_work.value['height']),
2017-06-25 12:41:22.863847 >   File "/home/rig/p2pool-1mb/p2pool/data.py", line 202, in generate_transaction
2017-06-25 12:41:22.863869 >     if desired_timestamp > previous_share.timestamp + 180:
2017-06-25 12:41:22.863902 > exceptions.AttributeError: 'NoneType' object has no attribute 'timestamp'

I also saw a lot of these, but presume it's just informational:

2017-06-25 12:40:43.009648 Peer 192.168.1.50:38694 says protocol version is 3200, client version 1
2017-06-25 12:40:46.808608 Peer 192.168.1.50:9174 says protocol version is 3200, client version 1
2017-06-25 12:40:47.673999 Peer 192.168.1.50:9174 says protocol version is 3200, client version 1
2017-06-25 12:41:05.053476 Peer 192.168.1.50:39246 says protocol version is 3200, client version 1
2017-06-25 12:41:09.160712 Peer 192.168.1.50:39340 says protocol version is 3200, client version 1
2017-06-25 12:41:13.091230 Peer 192.168.1.50:9174 says protocol version is 3200, client version 1
2017-06-25 12:41:15.805755 Peer 192.168.1.50:39508 says protocol version is 3200, client version 1
2017-06-25 12:41:17.081234 Peer 192.168.1.50:39540 says protocol version is 3200, client version 1

I then tried running it with the sharechin from the forrestv branch, but got complaints of my system clock being wrong, which of course it wasn't, so I think there's an issue with time/timestamp somewhere?  Merge mining appears to be working though.

Hope the logs help.