Bitcoin Forum
March 19, 2024, 04:52:21 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 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 ... 814 »
  Print  
Author Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool  (Read 2591571 times)
PublicP2poolNode
Sr. Member
****
Offline Offline

Activity: 347
Merit: 252


View Profile
February 24, 2017, 09:54:13 PM
 #15001

I have already performed a restart, this time with no argument as to txfees and also stopped merged mining with namecoin.


WINGS Beta is live - List your ICO for only 5000 WINGS at https://wings.ai Over $650 Million raised by ICOs with WINGS since June 2017
1710823941
Hero Member
*
Offline Offline

Posts: 1710823941

View Profile Personal Message (Offline)

Ignore
1710823941
Reply with quote  #2

1710823941
Report to moderator
1710823941
Hero Member
*
Offline Offline

Posts: 1710823941

View Profile Personal Message (Offline)

Ignore
1710823941
Reply with quote  #2

1710823941
Report to moderator
"You Asked For Change, We Gave You Coins" -- casascius
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
LevinSwe
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
February 24, 2017, 10:03:54 PM
 #15002

One way to not mine empty ones, change The min size, but a empy block brings coins...

Block creation options:
-blockminsize=<n>   Set minimum block size in bytes (default: 0)
-blockmaxsize=<n>   Set maximum block size in bytes (default: 750000)
-blockprioritysize=<n>   Set maximum size of high-priority/low-fee transactions in bytes (default: 0)
-ck
Legendary
*
Offline Offline

Activity: 4046
Merit: 1622


Ruu \o/


View Profile WWW
February 24, 2017, 10:08:16 PM
 #15003

One way to not mine empty ones, change The min size, but a empy block brings coins...

Block creation options:
-blockminsize=<n>   Set minimum block size in bytes (default: 0)
-blockmaxsize=<n>   Set maximum block size in bytes (default: 750000)
-blockprioritysize=<n>   Set maximum size of high-priority/low-fee transactions in bytes (default: 0)

This doesn't alter what's going on inside p2pool that mines an empty block (whatever that is). Perhaps the merged mining is the culprit... that almost certainly causes far more losses than any gains people think mining bullshit worthless coins might have. At 5-10% more reward due to transactions currently,  one really should try and mine transaction containing blocks as much as possible.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
PublicP2poolNode
Sr. Member
****
Offline Offline

Activity: 347
Merit: 252


View Profile
February 24, 2017, 10:46:44 PM
 #15004

One way to not mine empty ones, change The min size, but a empy block brings coins...

Block creation options:
-blockminsize=<n>   Set minimum block size in bytes (default: 0)
-blockmaxsize=<n>   Set maximum block size in bytes (default: 750000)
-blockprioritysize=<n>   Set maximum size of high-priority/low-fee transactions in bytes (default: 0)

This doesn't alter what's going on inside p2pool that mines an empty block (whatever that is). Perhaps the merged mining is the culprit... that almost certainly causes far more losses than any gains people think mining bullshit worthless coins might have. At 5-10% more reward due to transactions currently,  one really should try and mine transaction containing blocks as much as possible.
funny thing is, not being familiar with command line prompts, I don't even know how to withdraw my bullshit worthless coins that were likely the reason for the low transaction fees from the block I found yesterday and the one with no fees from last night Sad

WINGS Beta is live - List your ICO for only 5000 WINGS at https://wings.ai Over $650 Million raised by ICOs with WINGS since June 2017
KorbinDallas
Newbie
*
Offline Offline

Activity: 55
Merit: 0


View Profile
February 25, 2017, 12:46:15 AM
 #15005

Grab a surfboard. The waves are here...
in2tactics
Hero Member
*****
Offline Offline

Activity: 578
Merit: 501



View Profile
February 25, 2017, 03:26:15 AM
 #15006

One way to not mine empty ones, change The min size, but a empy block brings coins...

Block creation options:
-blockminsize=<n>   Set minimum block size in bytes (default: 0)
-blockmaxsize=<n>   Set maximum block size in bytes (default: 750000)
-blockprioritysize=<n>   Set maximum size of high-priority/low-fee transactions in bytes (default: 0)

This doesn't alter what's going on inside p2pool that mines an empty block (whatever that is). Perhaps the merged mining is the culprit... that almost certainly causes far more losses than any gains people think mining bullshit worthless coins might have. At 5-10% more reward due to transactions currently,  one really should try and mine transaction containing blocks as much as possible.
funny thing is, not being familiar with command line prompts, I don't even know how to withdraw my bullshit worthless coins that were likely the reason for the low transaction fees from the block I found yesterday and the one with no fees from last night Sad
You should not be mining to the wallet directly.

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
PublicP2poolNode
Sr. Member
****
Offline Offline

Activity: 347
Merit: 252


View Profile
February 25, 2017, 03:33:15 AM
 #15007

I don't believe you can specify an address for anything other than Bitcoin when merged mining.

WINGS Beta is live - List your ICO for only 5000 WINGS at https://wings.ai Over $650 Million raised by ICOs with WINGS since June 2017
PublicP2poolNode
Sr. Member
****
Offline Offline

Activity: 347
Merit: 252


View Profile
February 25, 2017, 07:58:53 AM
Last edit: February 25, 2017, 04:29:39 PM by PublicP2poolNode
 #15008

Well that one was a little better as far as trying to fill a block. I don't know if stopping merged mining with namecoin helped or not, I was really hoping for a full block but I guess I will be happy we found one Smiley


WINGS Beta is live - List your ICO for only 5000 WINGS at https://wings.ai Over $650 Million raised by ICOs with WINGS since June 2017
veqtrus
Member
**
Offline Offline

Activity: 107
Merit: 10


View Profile WWW
February 26, 2017, 07:59:52 AM
 #15009

sorry guys, don't know what is going on. Both blocks found today we're by me. And this is what I have in my settings.
blockmaxsize=970000
mintxfee=0.0001
minrelaytxfee=0.0001
maxconnections=100
gen=1

I don't understand why I mined one block with no fees and another with low fees.

My apologies.

Could you please send your p2pool and bitcoind logs? Maybe I will be able to find something useful.

P2Pool donation button | Bitrated user: veqtrus.
PublicP2poolNode
Sr. Member
****
Offline Offline

Activity: 347
Merit: 252


View Profile
February 26, 2017, 06:02:33 PM
 #15010

Veqtrus, I would be happy to, I'd need instructions on how to do so using a CLI

Not knowing how to do so, I am assuming that since I was merged mining with namecoin, most likely a namecoin block had been found on the network immediately before I found a block and that is why there were no transactions in the block I found.

I believe now that I am not merged mining that won't happen again.

Still, it seems like the last block should have been full if you look at the previous block and next block after it and the amount of time between them.


WINGS Beta is live - List your ICO for only 5000 WINGS at https://wings.ai Over $650 Million raised by ICOs with WINGS since June 2017
veqtrus
Member
**
Offline Offline

Activity: 107
Merit: 10


View Profile WWW
February 26, 2017, 06:15:10 PM
 #15011

I think I found what is the cause of empty blocks. When p2pool receives a newer block header it immediately attempts to mine on top of it until it receives the corresponding block template from bitcoind. This can take some time as currently p2pool fetches templates on fixed intervals (AFAIK). The relevant code can be found here.

Let's look at the empty block (00000000000000000201d592fcfcf59af02bdfe822123154a4a724ec7ffa0982) and the one before it (0000000000000000000e689d993b465aaa23e56e87d0f6c649de4b98830f789c). The time interval between them is exactly 1487923858-1487923258=600 seconds! This indicates that the p2pool node was still mining without the block template from bitcoind.

I made a patch so that p2pool tries to fetch a new block template as soon as empty work is detected and give up working on the new block header if it can't get the template.

[Merge-mining has nothing to do with that since bitcoin's block template is cached independently of mm work.]

P2Pool donation button | Bitrated user: veqtrus.
sawa
Legendary
*
Offline Offline

Activity: 1308
Merit: 1011



View Profile
February 26, 2017, 07:45:54 PM
Last edit: February 26, 2017, 07:57:04 PM by sawa
 #15012

I made a patch so that p2pool tries to fetch a new block template as soon as empty work is detected and give up working on the new block header if it can't get the template.
This patch is compatible with SEGWIT patch?
Veqtrus, please collect all your patches in one brunch.

PublicP2poolNode
Sr. Member
****
Offline Offline

Activity: 347
Merit: 252


View Profile
February 26, 2017, 07:47:17 PM
Last edit: February 26, 2017, 09:11:33 PM by PublicP2poolNode
 #15013

Not being familiar with CLI I wouldn't have the first clue how to add the patch  Undecided

I have approximately 12 hours left on my 4PH rental. My goal is to find five blocks in a row, I've got three down and two to go!

If we get lucky I'll be renting some more, i wish a few other big ballers would come along right now, or a few hundred smaller miners!

I would love to see p2pool have a larger presence.

Come on fellow miners, switch to p2pool right now, I'd love to stay for a while, and could use some help in reducing variance in hopes I can stay a while longer!

I have an idea, if your reading this post and you are inspired to give p2pool a chance for few days, leave a response here that you are in. Hopefully if enough new people to p2pool make a post that there going to give p2pool a shot it will get the ball rolling and many others will join!

P2pool is the best way to decentralize Bitcoin mining, so if your a miner and you want to do your part leave a post below stating that your giving it a try.

Thanks and best wishes to you all!


WINGS Beta is live - List your ICO for only 5000 WINGS at https://wings.ai Over $650 Million raised by ICOs with WINGS since June 2017
veqtrus
Member
**
Offline Offline

Activity: 107
Merit: 10


View Profile WWW
February 26, 2017, 08:17:42 PM
 #15014

I made a patch so that p2pool tries to fetch a new block template as soon as empty work is detected and give up working on the new block header if it can't get the template.
This patch is compatible with SEGWIT patch?
Veqtrus, please collect all your patches in one brunch.
For your convenience (yes, it is compatible): https://github.com/veqtrus/p2pool/tree/segwit1%2Bempty_block_fix1

P2Pool donation button | Bitrated user: veqtrus.
-ck
Legendary
*
Offline Offline

Activity: 4046
Merit: 1622


Ruu \o/


View Profile WWW
February 26, 2017, 08:27:09 PM
 #15015

I think I found what is the cause of empty blocks. When p2pool receives a newer block header it immediately attempts to mine on top of it until it receives the corresponding block template from bitcoind. This can take some time as currently p2pool fetches templates on fixed intervals (AFAIK). The relevant code can be found here.

Let's look at the empty block (00000000000000000201d592fcfcf59af02bdfe822123154a4a724ec7ffa0982) and the one before it (0000000000000000000e689d993b465aaa23e56e87d0f6c649de4b98830f789c). The time interval between them is exactly 1487923858-1487923258=600 seconds! This indicates that the p2pool node was still mining without the block template from bitcoind.

I made a patch so that p2pool tries to fetch a new block template as soon as empty work is detected and give up working on the new block header if it can't get the template.
Good work, that explains it. You may also wish to decrease the time interval as well since transactions change so frequently. I noticed a long time ago when proxying to p2pool that stratum updates were few and far between. I suggest 60 seconds instead of 10 minutes... The stratum specification says it should be under 90 seconds IIRC.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
sawa
Legendary
*
Offline Offline

Activity: 1308
Merit: 1011



View Profile
February 26, 2017, 08:43:06 PM
 #15016

For your convenience (yes, it is compatible): https://github.com/veqtrus/p2pool/tree/segwit1%2Bempty_block_fix1
Thanks.

Not being familiar with CLI I wouldn't have the first clue how to add the patch  Undecided
Now it's easy to do:
Code:
git clone -b segwit1+empty_block_fix1 https://github.com/veqtrus/p2pool.git

veqtrus
Member
**
Offline Offline

Activity: 107
Merit: 10


View Profile WWW
February 26, 2017, 08:47:42 PM
 #15017

Good work, that explains it. You may also wish to decrease the time interval as well since transactions change so frequently. I noticed a long time ago when proxying to p2pool that stratum updates were few and far between. I suggest 60 seconds instead of 10 minutes... The stratum specification says it should be under 90 seconds IIRC.
Stratum updates should happen on average every 30 seconds due to new shares being found; not sure about transaction updates.

P2Pool donation button | Bitrated user: veqtrus.
PublicP2poolNode
Sr. Member
****
Offline Offline

Activity: 347
Merit: 252


View Profile
February 26, 2017, 08:57:57 PM
 #15018

For your convenience (yes, it is compatible): https://github.com/veqtrus/p2pool/tree/segwit1%2Bempty_block_fix1
Thanks.

Not being familiar with CLI I wouldn't have the first clue how to add the patch  Undecided
Now it's easy to do:
Code:
git clone -b segwit1+empty_block_fix1 https://github.com/veqtrus/p2pool.git
I assume a p2pool restart is needed afterwards?
Has anyone found a block with this patch installed to verify it works as intended?

WINGS Beta is live - List your ICO for only 5000 WINGS at https://wings.ai Over $650 Million raised by ICOs with WINGS since June 2017
sawa
Legendary
*
Offline Offline

Activity: 1308
Merit: 1011



View Profile
February 26, 2017, 09:18:22 PM
Last edit: March 25, 2017, 10:13:45 AM by sawa
 #15019

I assume a p2pool restart is needed afterwards?

Yes. I do It so:

Code:
git clone -b segwit1+empty_block_fix1 https://github.com/veqtrus/p2pool.git p2pool-temp

Then stop the node and delete the contents of ~/p2pool/p2pool/ subdirectory.
And copy all from here  ~/p2pool-temp/p2pool  to here  ~/p2pool/p2pool/
Then run the node.
All this only takes a few minutes.

sawa
Legendary
*
Offline Offline

Activity: 1308
Merit: 1011



View Profile
February 26, 2017, 09:25:25 PM
 #15020

I join a question:
Has anyone found a block with this patch installed to verify it works as intended?

Pages: « 1 ... 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 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 ... 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!