Bitcoin Forum
May 21, 2024, 09:58:26 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 [11] 12 13 14 »  All
  Print  
Author Topic: A guide for mining efficiently on P2Pool, includes FUD repellent and FAQ  (Read 174862 times)
CartmanSPC
Legendary
*
Offline Offline

Activity: 1270
Merit: 1000



View Profile
February 27, 2014, 07:00:12 PM
 #201

  • raise mintxfee and minrelaytxfee back to defaults (0.0001)

Anyone know where (in the coin source) the default mins can be found? Searched but could not find it. Trying to see what would be good values for some altcoins.

cr1776
Legendary
*
Offline Offline

Activity: 4046
Merit: 1301


View Profile
February 27, 2014, 07:41:50 PM
 #202

  • raise mintxfee and minrelaytxfee back to defaults (0.0001)

Anyone know where (in the coin source) the default mins can be found? Searched but could not find it. Trying to see what would be good values for some altcoins.

Probably in  ~/.bitcoin/bitcoin.conf

e.g.

mintxfee=0.0001
minrelaytxfee=0.0001
blockprioritysize=8000
blockminsize=10000

Then your bitcoind will use those to construct the block.

In most alts it is in the same spot, with a different name.

Assuming I understood what you were asking.   :-)
fruor
Member
**
Offline Offline

Activity: 78
Merit: 13


View Profile WWW
February 27, 2014, 08:15:00 PM
 #203

someone mentioned here https://bitcointalk.org/index.php?topic=18313.msg5030281#msg5030281
that a possible solution to run p2pool with a low hashpower would be to mine to ADDR/0.0001

my question is: how do i add this running my own p2pool node using run_p2pool ?


My patch has no effect on running your own node. It's purpose is to let each miner on a public node get the share difficulty target they would get as if they were running their own node.

But if small mining rigs run their own node, it still seems impossible to get rewarded (my p2pool environment shows enough hashrate to at least find a block several times a day). If I understand it correctly you are forcing the node (not the pool) to give you a small share difficulty, but if you run your own node it will be using standard difficulties anyway?

roy7 you have my deepest respect for your efforts to make p2pool useable for small miners. However I still cannot follow how this can be achieved, I'm talking cpu-mining for scrypt coins. My current try is to setup a node on each cpu-machine and connect to their localhost using your hack /0.0001. Is this overkill?

BTW: I'm not aiming for botnets, they may be better off with centralized pools anyway, but for a build-in mining functionality in a coin wallet.

roy7
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
February 27, 2014, 09:08:40 PM
 #204

But if small mining rigs run their own node, it still seems impossible to get rewarded (my p2pool environment shows enough hashrate to at least find a block several times a day). If I understand it correctly you are forcing the node (not the pool) to give you a small share difficulty, but if you run your own node it will be using standard difficulties anyway?

roy7 you have my deepest respect for your efforts to make p2pool useable for small miners. However I still cannot follow how this can be achieved, I'm talking cpu-mining for scrypt coins. My current try is to setup a node on each cpu-machine and connect to their localhost using your hack /0.0001. Is this overkill?

The issue is that bigger miners are given higher share targets so they don't use up too much of the share chain themselves. p2pool is designed around the idea that each miner is running their own node. So a node = a miner. Thus, a node scales the difficulty for the workers connected to that node (all of your mining gear) to a higher level if you have a high combined speed.

This causes an issue for a public node with lots of small miners that the target share difficulty is being set to the combined total speed, not each miner's speed. So 100 people at 5GH will each be given a target share difficulty for a 500 GH miner. The same difficulty a 500 GH miner would have on his own private node. If these miners ran their own private node with just 5GH of speed, they'd have lower targets. So that is what my patch did, lower the target share difficulty for an address based only on the addresses' speed, not the node's total combined speed. This is also why the patch does nothing for a miner running his own private node, you already have a target based on your personal speed.

My patch changes the vardiff algorithm as above. If you set a target yourself with /DIFF, then the vardiff isn't used and my patch does nothing. /DIFF also overrides the dust prevention so you'll get the smallest shares you can no matter how little they pay. This can result in tx fees that cost more to spend the shares than they are worth. I don't think people should do that if they are mining long-term, but it's the easiest way to try and make "Why am I not getting paid" complaints go away.

No matter what vardiff does or what /DIFF you set, you will never get a share difficulty target below the minimum share difficulty for the network.
fruor
Member
**
Offline Offline

Activity: 78
Merit: 13


View Profile WWW
February 27, 2014, 11:13:07 PM
 #205

No matter what vardiff does or what /DIFF you set, you will never get a share difficulty target below the minimum share difficulty for the network.

so in the end there is no hope for small cpu miners using p2pool?
if your hack is not enough for them to get accepted shares, would a fork like the vertcoin one be?

http://www.reddit.com/r/vertcoin/comments/1xlp8i/attn_all_p2pool_operators_p2pool_update/

roy7
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
February 27, 2014, 11:33:39 PM
 #206

No matter what vardiff does or what /DIFF you set, you will never get a share difficulty target below the minimum share difficulty for the network.

so in the end there is no hope for small cpu miners using p2pool?
if your hack is not enough for them to get accepted shares, would a fork like the vertcoin one be?

http://www.reddit.com/r/vertcoin/comments/1xlp8i/attn_all_p2pool_operators_p2pool_update/

You could change networks.py to try and have a lower share difficulty but it'll go back up once more hash power joins the network. The way p2pool is designed, there is always going to be some level of hash power that is so small the variance is too high for people to stomach. For them it's probably better to use a proxypool like doge.st is designing.
cr1776
Legendary
*
Offline Offline

Activity: 4046
Merit: 1301


View Profile
February 28, 2014, 12:45:27 AM
 #207

No matter what vardiff does or what /DIFF you set, you will never get a share difficulty target below the minimum share difficulty for the network.

so in the end there is no hope for small cpu miners using p2pool?
if your hack is not enough for them to get accepted shares, would a fork like the vertcoin one be?

http://www.reddit.com/r/vertcoin/comments/1xlp8i/attn_all_p2pool_operators_p2pool_update/

You could change networks.py to try and have a lower share difficulty but it'll go back up once more hash power joins the network. The way p2pool is designed, there is always going to be some level of hash power that is so small the variance is too high for people to stomach. For them it's probably better to use a proxypool like doge.st is designing.

vertcoind is running fine, and I was going to try running p2pool on VTC to try out your mod, but am getting an error:

exceptions.ImportError: No module named vtc_scrypt

Any suggestions one what dependencies on Ubuntu 13 are needed for p2pool?  I am using the donSchoe / p2pool-vtc fork from github.

:-)
roy7
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
February 28, 2014, 01:07:46 AM
 #208

vertcoind is running fine, and I was going to try running p2pool on VTC to try out your mod, but am getting an error:

exceptions.ImportError: No module named vtc_scrypt

Any suggestions one what dependencies on Ubuntu 13 are needed for p2pool?  I am using the donSchoe / p2pool-vtc fork from github.

:-)

Check the README file for instructions on installing the vertcoin_scrypt module. Smiley
cr1776
Legendary
*
Offline Offline

Activity: 4046
Merit: 1301


View Profile
February 28, 2014, 01:38:32 AM
 #209

vertcoind is running fine, and I was going to try running p2pool on VTC to try out your mod, but am getting an error:

exceptions.ImportError: No module named vtc_scrypt

Any suggestions one what dependencies on Ubuntu 13 are needed for p2pool?  I am using the donSchoe / p2pool-vtc fork from github.

:-)

Check the README file for instructions on installing the vertcoin_scrypt module. Smiley

The subtly hidden readme.  ;-)  Usually they just say "see docs".  lol.

edit:  that did it.  Thanks for the pointer.  I'll check out your mod for it next.  ;-)
roy7
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
February 28, 2014, 02:12:53 AM
 #210

The subtly hidden readme.  ;-)  Usually they just say "see docs".  lol.

edit:  that did it.  Thanks for the pointer.  I'll check out your mod for it next.  ;-)

The p2pool-vtc repo already has my patch applied. Smiley
CartmanSPC
Legendary
*
Offline Offline

Activity: 1270
Merit: 1000



View Profile
February 28, 2014, 07:00:58 AM
 #211

  • raise mintxfee and minrelaytxfee back to defaults (0.0001)

Anyone know where (in the coin source) the default mins can be found? Searched but could not find it. Trying to see what would be good values for some altcoins.

Probably in  ~/.bitcoin/bitcoin.conf

Assuming I understood what you were asking.   :-)

Smiley where in the coin source (ex: https://github.com/bitcoin/bitcoin/tree/master/src). Different coins prob. have different default minimums.

cr1776
Legendary
*
Offline Offline

Activity: 4046
Merit: 1301


View Profile
February 28, 2014, 08:21:34 AM
 #212

  • raise mintxfee and minrelaytxfee back to defaults (0.0001)

Anyone know where (in the coin source) the default mins can be found? Searched but could not find it. Trying to see what would be good values for some altcoins.

Probably in  ~/.bitcoin/bitcoin.conf

Assuming I understood what you were asking.   :-)

Smiley where in the coin source (ex: https://github.com/bitcoin/bitcoin/tree/master/src). Different coins prob. have different default minimums.
I think this is what you are looking for around line 53-55:

main.cpp:
/** Fees smaller than this (in satoshi) are considered zero fee (for transaction creation) */
int64_t CTransaction::nMinTxFee = 10000;  // Override with -mintxfee
/** Fees smaller than this (in satoshi) are considered zero fee (for relaying) */
int64_t CTransaction::nMinRelayTxFee = 1000;



:-)
CartmanSPC
Legendary
*
Offline Offline

Activity: 1270
Merit: 1000



View Profile
February 28, 2014, 08:24:02 AM
 #213

  • raise mintxfee and minrelaytxfee back to defaults (0.0001)

Anyone know where (in the coin source) the default mins can be found? Searched but could not find it. Trying to see what would be good values for some altcoins.

Probably in  ~/.bitcoin/bitcoin.conf

Assuming I understood what you were asking.   :-)

Smiley where in the coin source (ex: https://github.com/bitcoin/bitcoin/tree/master/src). Different coins prob. have different default minimums.
I think this is what you are looking for around line 53-55:

main.cpp:
/** Fees smaller than this (in satoshi) are considered zero fee (for transaction creation) */
int64_t CTransaction::nMinTxFee = 10000;  // Override with -mintxfee
/** Fees smaller than this (in satoshi) are considered zero fee (for relaying) */
int64_t CTransaction::nMinRelayTxFee = 1000;

Thanks! That's it...actually now seeing it I remember where it was...man im loosing it lately...too much stuff going on..lack of sleep Embarrassed
At least now it's documented Smiley

smooth
Legendary
*
Offline Offline

Activity: 2968
Merit: 1198



View Profile
February 28, 2014, 10:49:13 PM
 #214

I have blockprioritysize=0 and mintxfee=0.01 yet I'm still getting transactions with smaller fees. Does anyone know why before I start digging into the source code?

2014-02-28 14:48:26.238012 New work for worker! Difficulty: 156.935343 Share difficulty: 504240.247210 Total block value: 25.016500 BTC including 2 transactions

EDIT: Just a guess but maybe "per KB" is actually applied "per 1/2 KB"?

cr1776
Legendary
*
Offline Offline

Activity: 4046
Merit: 1301


View Profile
February 28, 2014, 11:04:07 PM
 #215

The subtly hidden readme.  ;-)  Usually they just say "see docs".  lol.

edit:  that did it.  Thanks for the pointer.  I'll check out your mod for it next.  ;-)

The p2pool-vtc repo already has my patch applied. Smiley

Good to know.  It seems to be working perfectly.  I might have to try it on the btc side.
Thanks.
gyverlb (OP)
Hero Member
*****
Offline Offline

Activity: 896
Merit: 1000



View Profile
March 01, 2014, 10:16:29 AM
 #216

I have blockprioritysize=0 and mintxfee=0.01 yet I'm still getting transactions with smaller fees. Does anyone know why before I start digging into the source code?

2014-02-28 14:48:26.238012 New work for worker! Difficulty: 156.935343 Share difficulty: 504240.247210 Total block value: 25.016500 BTC including 2 transactions

EDIT: Just a guess but maybe "per KB" is actually applied "per 1/2 KB"?



Transactions can take less than a KB...

Why would you want to use such values (especially mintxfee=0.01)? And ask for directions in the thread where it's explained why you are not advised to (you are hurting your income and everyone else's)?

P2pool tuning guide
Trade BTC for €/$ at bitcoin.de (referral), it's cheaper and faster (acts as escrow and lets the buyers do bank transfers).
Tip: 17bdPfKXXvr7zETKRkPG14dEjfgBt5k2dd
smoothrunnings
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


View Profile
March 01, 2014, 10:28:50 AM
 #217

I have blockprioritysize=0 and mintxfee=0.01 yet I'm still getting transactions with smaller fees. Does anyone know why before I start digging into the source code?

2014-02-28 14:48:26.238012 New work for worker! Difficulty: 156.935343 Share difficulty: 504240.247210 Total block value: 25.016500 BTC including 2 transactions

EDIT: Just a guess but maybe "per KB" is actually applied "per 1/2 KB"?



Transactions can take less than a KB...

Why would you want to use such values (especially mintxfee=0.01)? And ask for directions in the thread where it's explained why you are not advised to (you are hurting your income and everyone else's)?

So even if mintxfee=0.00001? I am not sure why smooth put 0.01 when it doesn't clearly say that in the OP's post.

I am too not sure if the OP's post really helps everyone or only help people like him who don't use the settings possibly to gain more coins?

smooth
Legendary
*
Offline Offline

Activity: 2968
Merit: 1198



View Profile
March 01, 2014, 10:33:08 AM
 #218

Transactions can take less than a KB...

I think I misinterpreted this statement about rounding up from https://en.bitcoin.it/wiki/Transaction_fees as applying to mintxfee. It probably doesn't (but I will look at the code soon).

"the reference implementation will round up the transaction size to the next thousand bytes and add a fee of 0.1 mBTC (0.0001 BTC) per thousand bytes"

Quote
Why would you want to use such values (especially mintxfee=0.01)? And ask for directions in the thread where it's explained why you are not advised to (you are hurting your income and everyone else's)?

I chose those values for testing purposes to simplify the collection of transactions (generally down to one or two) since I was seeing similarly confusing behavior with more reasonable settings.
sshapiroNJ
Newbie
*
Offline Offline

Activity: 55
Merit: 0


View Profile
March 01, 2014, 04:57:31 PM
 #219

Now I got pros and cons of using P2Pool mining ! Thanks a lot for this guide-book!  Smiley
smoothrunnings
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


View Profile
March 01, 2014, 07:18:03 PM
 #220

Just out of curiosity does anyone use the settings the OP posts about in this thread?

I he or she makes some recommendations that I would like know if people are using or if there is some other sweet spot such as maxconnections= in bitcoin.conf?

Thanks,
Pages: « 1 2 3 4 5 6 7 8 9 10 [11] 12 13 14 »  All
  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!