Bitcoin Forum
March 28, 2024, 07:15:17 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 [775] 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 »
  Print  
Author Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool  (Read 2591584 times)
kano
Legendary
*
Offline Offline

Activity: 4452
Merit: 1798


Linux since 1997 RedHat 4


View Profile
June 23, 2017, 02:16:00 AM
 #15481

...
The math works out such that if two p2pool chains are equally efficient, then no matter which chain you mine on, the expected value of your payout remains the same regardless of how much time you spend on each chain and how often you switch between chains.
...
No.
When a 'chain' pays out less often it means your shares lose value.

Same as comparing a small 'pool' to a large 'pool'.
If a 'chain' or 'pool' pays only rarely (or never) per diff change, then you are losing out due to that.

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1711653317
Hero Member
*
Offline Offline

Posts: 1711653317

View Profile Personal Message (Offline)

Ignore
1711653317
Reply with quote  #2

1711653317
Report to moderator
1711653317
Hero Member
*
Offline Offline

Posts: 1711653317

View Profile Personal Message (Offline)

Ignore
1711653317
Reply with quote  #2

1711653317
Report to moderator
1711653317
Hero Member
*
Offline Offline

Posts: 1711653317

View Profile Personal Message (Offline)

Ignore
1711653317
Reply with quote  #2

1711653317
Report to moderator
windpath
Legendary
*
Offline Offline

Activity: 1258
Merit: 1027


View Profile WWW
June 23, 2017, 04:32:14 AM
 #15482

...
The math works out such that if two p2pool chains are equally efficient, then no matter which chain you mine on, the expected value of your payout remains the same regardless of how much time you spend on each chain and how often you switch between chains.
...
No.
When a 'chain' pays out less often it means your shares lose value.

Same as comparing a small 'pool' to a large 'pool'.
If a 'chain' or 'pool' pays only rarely (or never) per diff change, then you are losing out due to that.

For maybe the second time in a few years I find myself agreeing with Kano, our variance is now spanning difficulty changes. P2Pool is still the best pool by far for reasons all of us here understand, but it's time to reunite Smiley

Jtoomim, your skill is highly valued, lets merge and continue on...

Forrest offered the commit, lets do it before any major BTC changes happen and be ready to keep a form of decentralized mining alive Wink
jtoomim
Hero Member
*****
Offline Offline

Activity: 818
Merit: 1005


View Profile WWW
June 23, 2017, 10:55:40 PM
 #15483

The blocker on merging is still testing with altcoins. If someone can set up a node for a non-litecoin alt using the 1mb_hardforked or lowmem branches and mine to it for a while, and maybe verify that it forks cleanly to v17 and then v32 shares, that would speed things up a lot.

Hosting bitcoin miners for $65 to $80/kW/month on clean, cheap hydro power.
http://Toom.im
chasaamm
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
June 24, 2017, 11:03:52 AM
 #15484

The blocker on merging is still testing with altcoins. If someone can set up a node for a non-litecoin alt using the 1mb_hardforked or lowmem branches and mine to it for a while, and maybe verify that it forks cleanly to v17 and then v32 shares, that would speed things up a lot.
You are joking, right?
Bitcoin is the mother of all coins!
windpath
Legendary
*
Offline Offline

Activity: 1258
Merit: 1027


View Profile WWW
June 24, 2017, 04:55:38 PM
 #15485

The blocker on merging is still testing with altcoins. If someone can set up a node for a non-litecoin alt using the 1mb_hardforked or lowmem branches and mine to it for a while, and maybe verify that it forks cleanly to v17 and then v32 shares, that would speed things up a lot.
You are joking, right?
Bitcoin is the mother of all coins!

P2Pool has long supported both merged mining and solo mining of many alts. Maintaining that compatibility is important.
IconFirm
Hero Member
*****
Offline Offline

Activity: 1438
Merit: 574


Always ask questions. #StandWithHongKong


View Profile WWW
June 24, 2017, 05:24:19 PM
 #15486

The blocker on merging is still testing with altcoins. If someone can set up a node for a non-litecoin alt using the 1mb_hardforked or lowmem branches and mine to it for a while, and maybe verify that it forks cleanly to v17 and then v32 shares, that would speed things up a lot.

Hello p2poolers.

This statement caught my eye. Although I've never mined BTC using p2pool, I do mine altcoins using various forks of p2pool & have been meaning to ask on this thread for a while about weather the new fork that jtoomim has been working on was compatible with altcoins or not. p2pool has been due a revamp for a long time now & it's great that someone has finally taken it upon themselves to do so.

Point me to the repo & I'll have a look-see.

PIA went evil: https://bitcointalk.org/index.php?topic=5203968.msg53160131#msg53160131 Unofficial & Uncensored SYSCOIN thread: https://bitcointalk.org/index.php?topic=4748031.0    Do not trust Yobit/HitBTC/BiteBTC/coinsbit/p2pb2b/Mercatox/C-cex/Poloniex/WEX/KuCoin/LiveCoin/TheRockTrading/Bitfinex/ADAB/Okex/TradeSatoshi/Gate.io/Changelly/Freewallet.org/crex24 scam exchanges or ICO's by known scammers like HashCoins/Ambisafe/Bountyhive - they WILL scam you! Use diligence & research. Buy coins, sell coins - don't invest in stupid shit. If your questions aren't answered - don't touch it.
windpath
Legendary
*
Offline Offline

Activity: 1258
Merit: 1027


View Profile WWW
June 24, 2017, 09:32:19 PM
 #15487

The blocker on merging is still testing with altcoins. If someone can set up a node for a non-litecoin alt using the 1mb_hardforked or lowmem branches and mine to it for a while, and maybe verify that it forks cleanly to v17 and then v32 shares, that would speed things up a lot.

Hello p2poolers.

This statement caught my eye. Although I've never mined BTC using p2pool, I do mine altcoins using various forks of p2pool & have been meaning to ask on this thread for a while about weather the new fork that jtoomim has been working on was compatible with altcoins or not. p2pool has been due a revamp for a long time now & it's great that someone has finally taken it upon themselves to do so.

Point me to the repo & I'll have a look-see.

Awesome, here you go: https://github.com/jtoomim/p2pool/tree/1mb_hardforked
IconFirm
Hero Member
*****
Offline Offline

Activity: 1438
Merit: 574


Always ask questions. #StandWithHongKong


View Profile WWW
June 25, 2017, 09:53:58 AM
Last edit: June 25, 2017, 04:20:04 PM by IconFirm
 #15488


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 > --- <exception caught here> ---
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 > --- <exception caught here> ---
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 > --- <exception caught here> ---
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 > --- <exception caught here> ---
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 > --- <exception caught here> ---
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 > --- <exception caught here> ---
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 > --- <exception caught here> ---
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 <lambda>
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 > --- <exception caught here> ---
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.

PIA went evil: https://bitcointalk.org/index.php?topic=5203968.msg53160131#msg53160131 Unofficial & Uncensored SYSCOIN thread: https://bitcointalk.org/index.php?topic=4748031.0    Do not trust Yobit/HitBTC/BiteBTC/coinsbit/p2pb2b/Mercatox/C-cex/Poloniex/WEX/KuCoin/LiveCoin/TheRockTrading/Bitfinex/ADAB/Okex/TradeSatoshi/Gate.io/Changelly/Freewallet.org/crex24 scam exchanges or ICO's by known scammers like HashCoins/Ambisafe/Bountyhive - they WILL scam you! Use diligence & research. Buy coins, sell coins - don't invest in stupid shit. If your questions aren't answered - don't touch it.
sawa
Legendary
*
Offline Offline

Activity: 1308
Merit: 1011



View Profile
June 25, 2017, 10:50:32 PM
Last edit: June 26, 2017, 06:17:29 PM by sawa
 #15489

I have made the node AUR (GROESTL) http://crypto.office-on-the.net:12351 based on the fork of p2pool from jtoomim
If there is no shares in sharechain then this https://github.com/jtoomim/p2pool/blob/1mb_hardforked/p2pool/data.py#L202 leads to the fact that the miners do not connect to the stratum.
Worker started mining when I turned off lines 202-210
After receiving the first shares, I included lines 202-210
Then, the first share is obtained without a time stamp and when connecting other nodes an error is displayed about the impossibility of checking this share
Code:
Share check failed: 6ef7e789aaa686c19462aa74ae38da897e1da46f3b83d88bd97a8e6a38a46efd -> 0000000000000000000000000000000000000000000000000000000000000000
Traceback (most recent call last):
  File "/opt/groestl/p2pool-aur/p2pool/util/deferral.py", line 284, in _worker
    self.func(*self.args, **self.kwargs)
  File "/opt/groestl/p2pool-aur/p2pool/node.py", line 355, in clean_tracker
    self.set_best_share()
  File "/opt/groestl/p2pool-aur/p2pool/node.py", line 293, in set_best_share
    best, desired, decorated_heads, bad_peer_addresses = self.tracker.think(self.get_height_rel_highest, self.bitcoind_work.value['previous_block'], self.bitcoind_work.value['bits'], self.known_txs_var.value)
  File "/opt/groestl/p2pool-aur/p2pool/data.py", line 533, in think
    if not self.attempt_verify(share):
--- <exception caught here> ---
  File "/opt/groestl/p2pool-aur/p2pool/data.py", line 477, in attempt_verify
    share.check(self)
  File "/opt/groestl/p2pool-aur/p2pool/data.py", line 359, in check
    share_info, gentx, other_tx_hashes2, get_share = self.generate_transaction(tracker, self.share_info['share_data'], self.header['bits'].target, self.share_info['timestamp'], self.share_info['bits'].target, self.contents['ref_merkle_link'], [(h, None) for h in other_tx_hashes], self.net, last_txout_nonce=self.contents['last_txout_nonce'])
  File "/opt/groestl/p2pool-aur/p2pool/data.py", line 208, in generate_transaction
    if desired_timestamp > previous_share.timestamp + 180:
exceptions.AttributeError: 'NoneType' object has no attribute 'timestamp'

Also, when opening link in http://crypto.office-on-the.net:12351/static/classic/ on "Verified tails", for example http://crypto.office-on-the.net:12351/static/classic/share.html#6ef7e789aaa686c19462aa74ae38da897e1da46f3b83d88bd97a8e6a38a46efd opens this:
Quote
P2Pool> Share 38a46efd
Share not found
In the screen of the node at the time of opening, I see the message:
Code:
Error in DeferredResource handler:
Traceback (most recent call last):
  File "/opt/groestl/p2pool-aur/p2pool/util/deferred_resource.py", line 24, in render
    defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error)
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/internet/defer.py", line 150, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/web/resource.py", line 250, in render
    return m(request)
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/internet/defer.py", line 1532, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
--- <exception caught here> ---
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/internet/defer.py", line 1386, in _inlineCallbacks
    result = g.send(result)
  File "/opt/groestl/p2pool-aur/p2pool/web.py", line 198, in render_GET
    res = yield self.func(*self.args)
  File "/opt/groestl/p2pool-aur/p2pool/web.py", line 342, in <lambda>
    new_root.putChild('share', WebInterface(lambda share_hash_str: get_share(share_hash_str)))
  File "/opt/groestl/p2pool-aur/p2pool/web.py", line 295, in get_share
    far_parent='%064x' % share.share_info['far_share_hash'],
exceptions.TypeError: unsupported operand type for long(): 'NoneType'

merelcoin
Hero Member
*****
Offline Offline

Activity: 675
Merit: 504


View Profile
June 26, 2017, 06:15:16 AM
 #15490

I'm sorry if these questions have been asked before (i'm pretty sure they should have been answered already), i tried to find the answers, but this thread is alreay more than 700 pages long, so it was TL;DR  Smiley

I tried to setup a p2pool node, rented some hash on miningrigrentals and started playing with the setup, i ran into the following questions:

  • I set a 1% pool fee, meaning that if somebody on my node mined a block, i would get a 1% cut... Seems fair. But i've also seen a node setting a +90% fee, does this mean that he gets an equal cut when somebody on an other node finds a block, but when he finds a block he can keep +90% of the block reward?
  • i can setup my node so it doesn't broadcast new transactions. If i do this, can i put my own (secret) transactions in a block or do the other nodes also have to know my transactions? I know the chance of hitting a block by yourself are astronomically small, so it's just a theoretical question.
  • Can i prioritise my own transactions, so that if a block gets mined on my node, my own transactions have a better shot of being in this block?
  • If i find a share at a time when there is a dip in the p2pool network's hashrate (so the diff of the sharechain is lower), does this share have an equal value to a share that is found at a time of high hashrate (so high diff)?
  • I tried a setup where i merge mined several coins, the log didn't show any errors, but for some reason i didn't find a single share on the BTC sharechain anymore (at the time i should have found 6+ shares, but i didn't find a single one... This could be due to variance, but the odds of this should be small). Is there a potential pitfall i missed when setting up merged mining, or was i just very, very unlucky?
in2tactics
Hero Member
*****
Offline Offline

Activity: 578
Merit: 501



View Profile
June 26, 2017, 07:56:54 AM
 #15491

  • I set a 1% pool fee, meaning that if somebody on my node mined a block, i would get a 1% cut... Seems fair. But i've also seen a node setting a +90% fee, does this mean that he gets an equal cut when somebody on an other node finds a block, but when he finds a block he can keep +90% of the block reward?
It is only the percentage of the particular address's earnings, not the whole block reward.

  • i can setup my node so it doesn't broadcast new transactions. If i do this, can i put my own (secret) transactions in a block or do the other nodes also have to know my transactions? I know the chance of hitting a block by yourself are astronomically small, so it's just a theoretical question.
I think the short answer is, yes.

  • Can i prioritise my own transactions, so that if a block gets mined on my node, my own transactions have a better shot of being in this block?
How is this different than the last question?

  • If i find a share at a time when there is a dip in the p2pool network's hashrate (so the diff of the sharechain is lower), does this share have an equal value to a share that is found at a time of high hashrate (so high diff)?
Yes, p2pool is PPLNS regardless of the current difficulty. If the difficulty is high, you find less shares and vice versa.

  • I tried a setup where i merge mined several coins, the log didn't show any errors, but for some reason i didn't find a single share on the BTC sharechain anymore (at the time i should have found 6+ shares, but i didn't find a single one... This could be due to variance, but the odds of this should be small). Is there a potential pitfall i missed when setting up merged mining, or was i just very, very unlucky?
There is not enough information without your logs to answer this question.

Current HW: 2x Apollo
Retired HW: 3x 2PAC, 3x Moonlander 2, 2x AntMiner S7-LN, 5x AntMiner U1, 2x ASICMiner Block Erupter Cube, 4x AntMiner S3, 4x AntMiner S1, GAW Black Widow, and ZeusMiner Thunder X6
merelcoin
Hero Member
*****
Offline Offline

Activity: 675
Merit: 504


View Profile
June 26, 2017, 09:26:53 AM
 #15492

  • I set a 1% pool fee, meaning that if somebody on my node mined a block, i would get a 1% cut... Seems fair. But i've also seen a node setting a +90% fee, does this mean that he gets an equal cut when somebody on an other node finds a block, but when he finds a block he can keep +90% of the block reward?
It is only the percentage of the particular address's earnings, not the whole block reward.

  • i can setup my node so it doesn't broadcast new transactions. If i do this, can i put my own (secret) transactions in a block or do the other nodes also have to know my transactions? I know the chance of hitting a block by yourself are astronomically small, so it's just a theoretical question.
I think the short answer is, yes.

  • Can i prioritise my own transactions, so that if a block gets mined on my node, my own transactions have a better shot of being in this block?
How is this different than the last question?

  • If i find a share at a time when there is a dip in the p2pool network's hashrate (so the diff of the sharechain is lower), does this share have an equal value to a share that is found at a time of high hashrate (so high diff)?
Yes, p2pool is PPLNS regardless of the current difficulty. If the difficulty is high, you find less shares and vice versa.

  • I tried a setup where i merge mined several coins, the log didn't show any errors, but for some reason i didn't find a single share on the BTC sharechain anymore (at the time i should have found 6+ shares, but i didn't find a single one... This could be due to variance, but the odds of this should be small). Is there a potential pitfall i missed when setting up merged mining, or was i just very, very unlucky?
There is not enough information without your logs to answer this question.

Thank you very much for the answers, they were exactly what i needed.

Just to clarify, i tought there was a difference between creating a transaciton and not broadcasting it (so it would only exist in my own mempool) and creating a transaction, broadcasting it, but only prioritizing it on my own node (so it's in the pool's mempool, but it has a higher priority in mine).

About the logs for my merged-mining setup, i can probably re-setup the merged mining and re-run my experiment (i disabled the merged mining setup since i couldn't find any shares), but what basically happened is:

I setup my node, started my daemon, waited untill it synchronised
I setup the merged mining coins, let them synchronise (not at the same time as my main daemon, since the I/O was to high)
I started p2pool in this way:

Code:
python run_p2pool.py -f 1 \
--merged http://[redacted]:[redacted]@[ip]:[port] \
--merged http://[redacted]:[redacted]@[ip]:[port] \
--merged http://[redacted]:[redacted]@[ip]:[port]

Then i tail'ed the log, i saw following things:

Code:
Got new merged mining work!
Pool: [hashrate] Stale rate: [stalerate]% Expected time to block: [x] days
Local: [my own hashrate] in last 0.0 seconds Local dead on arrival: [DOA] Expected time to share: [time to next share in minutes]
Shares: 0 (0 orphan, 0 dead) Stale rate: ??? Efficiency: ??? Current payout: [expected payout]

When looking at the merge mined coin's debug log, i could got a line like this all the time:
Code:
CreateNewBlock(): total size [size]

Now, it looks like everything works 100% fine. My hashrate is registered, so i must be sending pseudo-shares. The merged mining also seems to work, since the merged mining daemon asks for a new block all the time... However, i kept running this setup for a couple of hours, and it should have generated 7 or 8 shares (on average) during this time, but it generated 0.
I then stopped p2pool started it without the --merged options, let it run for about the same timeframe and got 6 or 7 shares (can't remember exactly).

The odds of this happening witout any reason seem very small to me, so i must have messed something up...
windpath
Legendary
*
Offline Offline

Activity: 1258
Merit: 1027


View Profile WWW
June 26, 2017, 01:52:29 PM
 #15493

Just to clarify how the fees are handled, it is a percentage of shares found by your node, not a % of rewards earned... So if your charging 1%, during perfectly flat luck/variance if a miner on your node mines 100 shares, your node address will be credited with 1 share.

IconFirm
Hero Member
*****
Offline Offline

Activity: 1438
Merit: 574


Always ask questions. #StandWithHongKong


View Profile WWW
June 26, 2017, 02:09:51 PM
 #15494

So is it correct to say that the jtoomim brach is not compatible with altcoins as things stand atm?

PIA went evil: https://bitcointalk.org/index.php?topic=5203968.msg53160131#msg53160131 Unofficial & Uncensored SYSCOIN thread: https://bitcointalk.org/index.php?topic=4748031.0    Do not trust Yobit/HitBTC/BiteBTC/coinsbit/p2pb2b/Mercatox/C-cex/Poloniex/WEX/KuCoin/LiveCoin/TheRockTrading/Bitfinex/ADAB/Okex/TradeSatoshi/Gate.io/Changelly/Freewallet.org/crex24 scam exchanges or ICO's by known scammers like HashCoins/Ambisafe/Bountyhive - they WILL scam you! Use diligence & research. Buy coins, sell coins - don't invest in stupid shit. If your questions aren't answered - don't touch it.
sawa
Legendary
*
Offline Offline

Activity: 1308
Merit: 1011



View Profile
June 26, 2017, 04:59:14 PM
Last edit: June 26, 2017, 07:43:03 PM by sawa
 #15495

So is it correct to say that the jtoomim brach is not compatible with altcoins as things stand atm?
There is a problem with the launch of mining, when the sharechain of the altcoin p2pool is empty:
https://bitcointalk.org/index.php?topic=18313.msg19772037#msg19772037
I hope that jtoomim will easily fix this problem

chasaamm
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
June 30, 2017, 12:58:58 PM
 #15496

There is news on the state of play?
Everybody is so quiet!  Roll Eyes
KorbinDallas
Newbie
*
Offline Offline

Activity: 55
Merit: 0


View Profile
July 03, 2017, 08:18:34 PM
 #15497

Worst bit of luck we've had in a while.
Duce
Full Member
***
Offline Offline

Activity: 175
Merit: 100


View Profile
July 04, 2017, 04:57:14 AM
 #15498

Is it luck or that we are divided? Angry
Meuh6879
Legendary
*
Offline Offline

Activity: 1512
Merit: 1011



View Profile
July 04, 2017, 05:06:11 PM
 #15499

Everybody is so quiet!  Roll Eyes

 Grin Summer vacancy + Segwit waiting.
notabeliever
Hero Member
*****
Offline Offline

Activity: 721
Merit: 504


View Profile
July 05, 2017, 04:45:17 PM
 #15500

When mining DGB is part of the incompatibility is when 2 out of 3 miners with similar hash speed always have 90 percent less share?
Pages: « 1 ... 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 [775] 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!