So a p2pool node only generates revenue from its miners. Even then, a 1% fee sometimes is so minimal, it doesnt payout.Curious question:
- p2pool node that has no miners connected to it (no hashrate, no shares).
- does CreateNewBlock(): block weight: XXX txs: 18 fees: XXXXXX sigops XXX
Will it ever generate any revenue for itself or it needs to have at least one share?
What are the pre-requisites to generate a revenue for p2pool node? Is that only a fee from miners?
Thanks!
I believe this issue was fixed by commit be975b4.There is a similar problem on the LCC p2pool - the hashrate disappears simultaneously on different nodes.
http://crypto.mine.nu:5055
http://siberia.mine.nu:5055
http://37.29.116.122:5055
https://lcc.crabs.pro
Code: Select all
top - 00:38:06 up 76 days, 3:28, 1 user, load average: 0.04, 0.03, 0.00
Tasks: 1121 total, 1 running, 1120 sleeping, 0 stopped, 0 zombie
%Cpu0 : 2.0 us, 1.0 sy, 0.0 ni, 97.1 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu1 : 0.7 us, 0.0 sy, 0.0 ni, 99.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 4194304 total, 1994748 free, 1607908 used, 591648 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 2296312 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
18260 litecoin 20 0 973060 456788 13852 S 2.6 10.9 29:19.52 pypy
24114 root 20 0 53052 3208 1468 R 1.0 0.1 0:00.16 top
18026 litecoin 20 0 1999792 658892 6124 S 0.7 15.7 4:04.61 litecoind
Awesome stuff Jtoomim. And thanks for the reply in regards to share variance. Its pretty much what Ive been telling most, but not as clearly =D This will go up in our FAQ section on the community discord channel that came from doing p2pool videos.Another invalid block was mined on LTC p2pool by LZzzELrQifCah5oafpNuCA6dLiyacVJNDa, after a streak of 27 valid blocks.
http://ml.toom.im:9327/static/share.htm ... 4aee5ae83e
I've made a lot of progress on getting fee/block reward checking done. I may have a fix for this soon.
Code: Select all
2018-03-05 03:30:20.931715 > Traceback (most recent call last):
2018-03-05 03:30:20.931847 > File "/home/bch/debugltc/p2pool/data.py", line 474, in check
2018-03-05 03:30:20.932083 > raise ValueError("Excessive block reward in share! Naughty. Max allowed = %i, requested subsidy = %i" % (max_subsidy, self.share_info['share_data']['subsidy']))
2018-03-05 03:30:20.932170 > ValueError: Excessive block reward in share! Naughty. Max allowed = 2511566649, requested subsidy = 2512063149
Code: Select all
2018-03-05 04:18:15.682756 > Traceback (most recent call last):
2018-03-05 04:18:15.682868 > File "/home/bch/debugltc/p2pool/data.py", line 478, in check
2018-03-05 04:18:15.683182 > raise ValueError("Excessive block reward in share! Naughty. " + details)
2018-03-05 04:18:15.683293 > ValueError: Excessive block reward in share! Naughty. Max allowed = 2507693731, requested subsidy = 2508235131, share hash = 82167b0718a48f65456f44daf620d78d7da895086c9acb0230825e0af41b5909, miner = LZzzELrQifCah5oafpNuCA6dLiyacVJNDa
2018-03-05 04:18:15.686428 Punishing share for 'naughty share (excessive block reward or otherwise would make an invalid block)'! Jumping from f41b5909 to d45184d6!
2018-03-05 04:18:17.761892 Punishing share for 'naughty share (excessive block reward or otherwise would make an invalid block)'! Jumping from f41b5909 to d45184d6!
2018-03-05 04:18:17.763209 Punishing share for 'naughty share (excessive block reward or otherwise would make an invalid block)'! Jumping from f41b5909 to d45184d6!
2018-03-05 04:18:22.765500 Punishing share for 'naughty share (excessive block reward or otherwise would make an invalid block)'! Jumping from f41b5909 to d45184d6!
2018-03-05 04:18:22.766764 Punishing share for 'naughty share (excessive block reward or otherwise would make an invalid block)'! Jumping from f41b5909 to d45184d6!
2018-03-05 04:18:24.099056 Max allowed = 2511213328, requested subsidy = 2511213328, share hash = 3134e4c2c6850f3aee33cce9e3eb1f6da7878deaf87d4cdd8482e06c71d45c2b, miner = LanyWSFZwRFs4Qtv95h67KL9zYmDEYMxmc
Code: Select all
git fetch
git checkout feechecking
Code: Select all
2018-03-05 12:44:50.666343 Total block stripped size=32902 B, full size=35979 B, weight: 134641 WU
Unhandled Error
Traceback (most recent call last):
File "/home/skynet/p2pool/p2pool/main.py", line 692, in run
reactor.run()
File "/usr/local/lib/pypy2.7/dist-packages/Twisted-15.4.0-py2.7-linux-x86_64.egg/twisted/internet/base.py", line 1194, in run
self.mainLoop()
File "/usr/local/lib/pypy2.7/dist-packages/Twisted-15.4.0-py2.7-linux-x86_64.egg/twisted/internet/base.py", line 1203, in mainLoop
self.runUntilCurrent()
File "/usr/local/lib/pypy2.7/dist-packages/Twisted-15.4.0-py2.7-linux-x86_64.egg/twisted/internet/base.py", line 825, in runUntilCurrent
call.func(*call.args, **call.kw)
--- <exception caught here> ---
File "/home/skynet/p2pool/p2pool/bitcoin/stratum.py", line 38, in _send_work
x, got_response = self.wb.get_work(*self.wb.preprocess_request('' if self.username is None else self.username))
File "/home/skynet/p2pool/p2pool/bitcoin/worker_interface.py", line 129, in get_work
x, handler = self._inner.get_work(*args)
File "/home/skynet/p2pool/p2pool/work.py", line 360, in get_work
self.node.bitcoind_work.value['bits'].target)*self.node.net.SPREAD)*self.node.net.PARENT.DUST_THRESHOLD/block_subsidy))
exceptions.UnboundLocalError: local variable 'block_subsidy' referenced before assignment
2018-03-05 12:44:50.950811 Generating a share with 30600 bytes, 112512 WU (new: 472 B, 1231 WU) in 68 tx (2 new), plus est gentx of 5771 bytes/23120 WU
2018-03-05 12:44:50.950999 Total block stripped size=33155 B, full size=36451 B, weight: 135872 WU
I have switched to https://github.com/ilsawa/p2pool-jtoomim instead. It works with 0.16 bitcoind.Bitcoin Core 0.16 changed the RPC interface, and I haven't had time to update p2pool to use the new RPC interface. You can either add support to the new RPC interface yourself, or you can continue to use 0.15 for now.
Users browsing this forum: Amazon [Bot] and 1 guest