Bitcoin Forum
April 24, 2024, 11:07:44 PM *
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 15 16 17 [18] 19 20 21 22 23 24 25 26 27 28 »
  Print  
Author Topic: p2pool - Decentralized, Absolutely DoS-Proof, Pool Hopping-Proof Pool [archival]  (Read 35482 times)
forrestv
Hero Member
*****
Offline Offline

Activity: 516
Merit: 643


View Profile
January 09, 2012, 12:57:05 PM
 #341

What is the recommended way to run p2pool as a service on Windows? I have bitcoind running as a service using BitcoinServiceWrapper (somewhere in the forums), and I would like to do the same with p2pool.
Also, how many peers is the maximum? I obtained 10 peers rapidly, but then it never went any higher than that. Additionally, there is (xxxxx/17381 Verified), which is increasing extremely slowly. What does this number mean?

P2Pool only tries to make 10 outgoing connections, so if your port 9333 is not open, that is where it will stay. P2Pool tries to get 2 days of shares (~17280 shares), so that many is normal. It's just the number of shares back that your node knows about.

A post sometimes in August mentions a -chart option ... it seems
to have disappeared ?

It was --charts, but now it automatically detects if the dependencies are present and enables it if they are. However, the current release doesn't include very good charts. There's work in progress on better charts and it's visible at http://forre.st:9332/graphs/ .

I'd like to run one instance of p2pool and the bitcoin client on a small
non-mining machine and have all my miners get work from there.

Is that possible ?
If so, how can I see per-miner stats in the pool's output ?

Definitely possible. P2Pool by default listens on all interfaces, so you can just point them to the host running P2Pool. P2Pool does not collect per-miner stats yet, though it's a priority and going to happen as part of the new graphs.

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
Whoever mines the block which ends up containing your transaction will get its fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714000064
Hero Member
*
Offline Offline

Posts: 1714000064

View Profile Personal Message (Offline)

Ignore
1714000064
Reply with quote  #2

1714000064
Report to moderator
ThiagoCMC
Legendary
*
Offline Offline

Activity: 1204
Merit: 1000

฿itcoin: Currency of Resistance!


View Profile
January 09, 2012, 03:29:55 PM
 #342

Guys!

 I need some help here...

 I like to setup P2Pool at my Mining Rig with: Bitcoin / Namecoin via merged mining and Litecoin.

 I'm using Ubuntu 11.04 64 bits.

 I already have the 3 daemons running, the bitcoind (from Ubuntu PPA), namecoind and litecoind compiled from sources.

 Now I want to setup the P2Pool daemon to talk with Bitcoin (default), with Namecoin via merged mining feature and, with Litecoin.

 So, how to do it?!

 Do I need two P2Pool daemons? One for Bitcoin/Namecoin and another for exclusively Litecoin?!

 Any tips?!

 I would like to keep this as simple as possible (with KISS Principle in mind)...

 The P2Pool dependencies are already installed.

Cheers!
Thiago
rjk
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250


1ngldh


View Profile
January 09, 2012, 03:33:14 PM
 #343

What is the recommended way to run p2pool as a service on Windows? I have bitcoind running as a service using BitcoinServiceWrapper (somewhere in the forums), and I would like to do the same with p2pool.
Also, how many peers is the maximum? I obtained 10 peers rapidly, but then it never went any higher than that. Additionally, there is (xxxxx/17381 Verified), which is increasing extremely slowly. What does this number mean?

P2Pool only tries to make 10 outgoing connections, so if your port 9333 is not open, that is where it will stay. P2Pool tries to get 2 days of shares (~17280 shares), so that many is normal. It's just the number of shares back that your node knows about.
I did open the port for it, that is why I was wondering. I already have a static IP and use the same machine for a few other things including a web and mail server.

Also, can p2pool talk to a remote bitcoind, or must they both be on the same box? I haven't found any sort of --connect option, but perhaps I'm doing it wrong. (also, any word on running it as a service?)

Mining Rig Extraordinaire - the Trenton BPX6806 18-slot PCIe backplane [PICS] Dead project is dead, all hail the coming of the mighty ASIC!
ovidiusoft
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


View Profile
January 09, 2012, 04:24:50 PM
 #344

Also, can p2pool talk to a remote bitcoind, or must they both be on the same box? I haven't found any sort of --connect option, but perhaps I'm doing it wrong. (also, any word on running it as a service?)
It can, use options --bitcoind-address, --bitcoind-rpc-port, --bitcoind-p2p-port.
rjk
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250


1ngldh


View Profile
January 09, 2012, 04:27:12 PM
 #345

Also, can p2pool talk to a remote bitcoind, or must they both be on the same box? I haven't found any sort of --connect option, but perhaps I'm doing it wrong. (also, any word on running it as a service?)
It can, use options --bitcoind-address, --bitcoind-rpc-port, --bitcoind-p2p-port.
Oh good, thank you.

Mining Rig Extraordinaire - the Trenton BPX6806 18-slot PCIe backplane [PICS] Dead project is dead, all hail the coming of the mighty ASIC!
ovidiusoft
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


View Profile
January 09, 2012, 04:31:23 PM
 #346

Do I need two P2Pool daemons? One for Bitcoin/Namecoin and another for exclusively Litecoin?!
Correct. You'll need to install the ltc_scrypt module from the litecoin_scrypt directory and then you can run p2pool for Litecoin. The other p2pool daemon will do BTC+NMC merged mining, but keep in mind that for namecoin you are actually solo mining. See options --merged-url and --merged-userpass, which need to point to namecoind rpc. Hopefully a future version of p2pool will do real p2p merged mining.
forrestv
Hero Member
*****
Offline Offline

Activity: 516
Merit: 643


View Profile
January 09, 2012, 05:36:49 PM
 #347

I already have the 3 daemons running, the bitcoind (from Ubuntu PPA), namecoind and litecoind compiled from sources.

 Now I want to setup the P2Pool daemon to talk with Bitcoin (default), with Namecoin via merged mining feature and, with Litecoin.

 So, how to do it?!

 Do I need two P2Pool daemons? One for Bitcoin/Namecoin and another for exclusively Litecoin?!

I'd recommend sticking this in litecoin.conf:
Code:
rpcport=11332
port=11333
Otherwise, the bitcoin-P2Pool and litecoind's ports will conflict.

By default, namecoind's RPC port conflicts with Bitcoin's too, but you probably already fixed that.

You need to run two instances of P2Pool, one for Bitcoin and Namecoin, and one for Litecoin.

For the Bitcoin-Namecoin one: python run_p2pool.py BITCOIN_PASS --merged-url http://127.0.0.1:NAMECOIN_RPC_PORT/ --merged-userpass NAMECOIN_USER:NAMECOIN_PASS
For the Litecoin one: python run_p2pool.py LITECOIN_PASS --net litecoin --bitcoind-rpc-port 11332 --bitcoind-p2p-port 11333

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
shad
Full Member
***
Offline Offline

Activity: 148
Merit: 100


View Profile
January 09, 2012, 05:46:59 PM
 #348

i am following this since first release, i had it running for testing
this thing is the future!!!
but i see some troubles

1) the problem with merged mining: i looked a little bit over the code, an afaik you are only checking your own hashes against namecoin or whatevercoin and you get the hole block, so alternative-blockchains are solo mining.

my evil side says me that all good bitcoin hashes are stored in this history-db to do double checking (verification of the share-history so there are no "cheaters") and if i understand the merged mining stuff right ever good bitcoin-share could also be a good namecoin-share, so all i have to do is set up a little "optimized" P2P-Pool-server with or without a miner and send every new share that is coming over P2P to my alternative "solo-mining-namecoin-server" and hope that there is a positive match!
or did i miss something? i guess i am not the only one with this idea....

my suggestion is that there should be at least an namecoin support by sending the share with bitcoin&namecoin-adresse, so that also the namecoins are splitted over the users that provide a valid namecoin adresse and if an share without valid namecoinadress comes over P2P there should be a check by the merged-miners
i know there are more alternative chains but namecoin is by hashrate the second one! and namecoins are a good idea, my opinion is that other currencies are only splitting the community

2)version stuff: at some releases you are writting that everbody has to update the version, what would happen if i am not able to update because of some remotecontrol-problems? is there some kind of protocol version? i didn't look that up in your code, i would prefer a split of the pools so that people who arent updating because of what ever are mining with the other non-updaters

3)small thing: it would be nice if there would be some proxy(tor) support, i know that when everbody would use this over tor there would be a major connection problem, but not more as if nobody would make a port-redirect on there routers

don't get this wrong, i really like your project, i looked at the code and this is amazing for a one man show  Smiley


15dUzJEUkxgjrtcvDSdsEDkXu7E7RCbNN3
forrestv
Hero Member
*****
Offline Offline

Activity: 516
Merit: 643


View Profile
January 09, 2012, 06:13:43 PM
 #349

1) the problem with merged mining: i looked a little bit over the code, an afaik you are only checking your own hashes against namecoin or whatevercoin and you get the hole block, so alternative-blockchains are solo mining.

my evil side says me that all good bitcoin hashes are stored in this history-db to do double checking (verification of the share-history so there are no "cheaters") and if i understand the merged mining stuff right ever good bitcoin-share could also be a good namecoin-share, so all i have to do is set up a little "optimized" P2P-Pool-server with or without a miner and send every new share that is coming over P2P to my alternative "solo-mining-namecoin-server" and hope that there is a positive match!
or did i miss something? i guess i am not the only one with this idea....

my suggestion is that there should be at least an namecoin support by sending the share with bitcoin&namecoin-adresse, so that also the namecoins are splitted over the users that provide a valid namecoin adresse and if an share without valid namecoinadress comes over P2P there should be a check by the merged-miners
i know there are more alternative chains but namecoin is by hashrate the second one! and namecoins are a good idea, my opinion is that other currencies are only splitting the community

You can't use somebody else's share as a Namecoin attempt that would pay you. The Namecoin blocks all include a transaction to the miner that created it, which you can't change. Changing it would change the block's hash, making it worthless. Also, you can't use a non-Namecoin share to get NMC, because Namecoin requires a special tag to be inside the block.

Yeah, I'm working towards pooled merged Namecoin mining.

2)version stuff: at some releases you are writting that everbody has to update the version, what would happen if i am not able to update because of some remotecontrol-problems? is there some kind of protocol version? i didn't look that up in your code, i would prefer a split of the pools so that people who arent updating because of what ever are mining with the other non-updaters

That will already happen - the sharechain will fork, with old miners on one side and new miners on the other.

Also, I try to schedule these forking changes at least a few weeks in the future, so everyone has a lot of time to upgrade. For example, the last change that went from a 12 hour to 24 hour payout period was included in a release 25 days before the actual change happened.

3)small thing: it would be nice if there would be some proxy(tor) support, i know that when everbody would use this over tor there would be a major connection problem, but not more as if nobody would make a port-redirect on there routers

Tor would probably increase latency quite a bit... But in any case, you can already do it with tsocks: tsocks python run_p2pool.py ... should work fine.

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
shad
Full Member
***
Offline Offline

Activity: 148
Merit: 100


View Profile
January 09, 2012, 06:44:10 PM
 #350

thx for the info

is anyone running this with X6500? (https://github.com/fizzisist/x6500-miner)

15dUzJEUkxgjrtcvDSdsEDkXu7E7RCbNN3
forrestv
Hero Member
*****
Offline Offline

Activity: 516
Merit: 643


View Profile
January 09, 2012, 08:05:28 PM
 #351

thx for the info

is anyone running this with X6500? (https://github.com/fizzisist/x6500-miner)

I know that coblee is (or at least was).

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
coblee
Donator
Legendary
*
Offline Offline

Activity: 1653
Merit: 1286


Creator of Litecoin. Cryptocurrency enthusiast.


View Profile
January 10, 2012, 09:17:57 AM
 #352

thx for the info

is anyone running this with X6500? (https://github.com/fizzisist/x6500-miner)

I know that coblee is (or at least was).

I've tried to but it doesn't work properly. I think X6500 doesn't work well with shares with difficulty >1.

DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
January 10, 2012, 01:39:35 PM
 #353

thx for the info

is anyone running this with X6500? (https://github.com/fizzisist/x6500-miner)

I know that coblee is (or at least was).

I've tried to but it doesn't work properly. I think X6500 doesn't work well with shares with difficulty >1.

That would seem to be more a problem w/ the miner software than the X6500. 
forrestv
Hero Member
*****
Offline Offline

Activity: 516
Merit: 643


View Profile
January 10, 2012, 10:07:00 PM
 #354


Something I don't understand ...

. I start the bitcoin daemon, wait till it's up and running
. I start the pool daemon with a payout address specified on the command line and whose private key is in the wallet of the bitcoin daemon
. They talk to one another fine
. I start cgminer, it gets shares from the pool fine and after a while, solves some
. The pool reports solved shares received from the miner

Everything looks peachy until I decide to  look at: http://127.0.0.1:9332/current_payouts

My payout address is nowhere to be seen Sad

Am I missing something ?

Look at P2Pool's status line. Are the shares not orphaned or dead? If they're not, they should definitely be displayed in /current_payouts .

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
forrestv
Hero Member
*****
Offline Offline

Activity: 516
Merit: 643


View Profile
January 10, 2012, 10:33:25 PM
 #355


Something I don't understand ...

. I start the bitcoin daemon, wait till it's up and running
. I start the pool daemon with a payout address specified on the command line and whose private key is in the wallet of the bitcoin daemon
. They talk to one another fine
. I start cgminer, it gets shares from the pool fine and after a while, solves some
. The pool reports solved shares received from the miner

Everything looks peachy until I decide to  look at: http://127.0.0.1:9332/current_payouts

My payout address is nowhere to be seen Sad

Am I missing something ?

Look at P2Pool's status line. Are the shares not orphaned or dead? If they're not, they should definitely be displayed in /current_payouts .

Status line ?
Where do I get that ?
Do you mean the last line of the logs ?

This is what the logs say:

Code:

2012-01-10 23:10:39.152235 New work for worker! Share difficulty: 130.946215 Payout if block: 0.005189 BTC Total block value: 50.041000 BTC including 38 transactions
2012-01-10 23:10:41.490309 Pool: 64794MH/s in 17365 shares (17369/17369 verified) Recent: 0.00% >0H/s Shares: 0 (0 orphan, 0 dead) Peers: 10
2012-01-10 23:10:41.490381 Average time between blocks: 0.96 days
2012-01-10 23:10:41.490426 Pool stales: 12%


Digging in the logs, here's the latest accepted share:

Code:

2012-01-10 23:09:29.541931 Worker submitted share with hash > target:
2012-01-10 23:09:29.542019     Hash:   e509b74eb3ad7ce0cedb0a47495f586aafa73714965bffb1d94f890a
2012-01-10 23:09:29.543537     Target: 1fffffffffffffffffffffffffffffffffffffffffffffffffffffff


And cgminer reports 22 shares as accepted by the pool.


sad



You haven't gotten any shares yet - "Shares: 0 (0 orphan, 0 dead)". The "Worker submitted share with hash > target" would seem to indicate that you have an old version of cgminer... You should upgrade it.

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
forrestv
Hero Member
*****
Offline Offline

Activity: 516
Merit: 643


View Profile
January 10, 2012, 10:55:44 PM
 #356

I compiled it from source about two days ago.
I guess that might qualify as old ... let me go recompile then.
(btw, I am mining on a CPU, in case this has a bearing).

Ah, nevermind, I guess the CPU miner doesn't check the target. That's fine then. You should get a real P2Pool share about every 17 shares that cgminer says it submitted.

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
paraipan
In memoriam
Legendary
*
Offline Offline

Activity: 924
Merit: 1004


Firstbits: 1pirata


View Profile WWW
January 10, 2012, 11:18:01 PM
 #357

watching...

BTCitcoin: An Idea Worth Saving - Q&A with bitcoins on rugatu.com - Check my rep
forrestv
Hero Member
*****
Offline Offline

Activity: 516
Merit: 643


View Profile
January 11, 2012, 01:25:53 AM
 #358

Is this http://forre.st:9332/patron_sendmany?total=1.5 reporting correctly?

I was about to send another donation to the miners and in the process noticed there were far fewer addresses today compared to yesterday. I'll hold off for now.

This is intended. It now combines very small (<0.01 BTC) addresses using a proportional lottery (gmaxwell's work).

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
forrestv
Hero Member
*****
Offline Offline

Activity: 516
Merit: 643


View Profile
January 11, 2012, 02:35:00 AM
 #359

Two things ... first, the code seems to actually be checking the
target before submitting back to the pool. I might have misread,
but every CPU implementation in cgminer actually calls fulltest
on a matching piece of work.

Second, I now have mined close to 40 shares that all triggered
a "worker submitted share with hash > target" ... this is increasingly
likely a bug somewhere.

Question : what made you say that older version of cgminer displayed
this behavior ? Did I miss something in the way the target is handled
by cgminer in the case of your pool ?

I am very sure that it doesn't... I am testing CPU mining with cgminer and looked at the code. The CPU mining code never calls fulltest. One of every 138 of your shares should qualify as a P2Pool share.

An older version of cgminer didn't check the target when GPU mining.

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
Matoking
Sr. Member
****
Offline Offline

Activity: 352
Merit: 250

Firstbits: 1m8xa


View Profile WWW
January 11, 2012, 07:14:28 PM
 #360

The Bitcoin client (v0.5.1) tends to crash every now and then while I'm using p2pool.

BTC : 1CcpmVDLvR7DgA5deFGScoNhiEtiJnh6H4 - LTC : LYTnoXAHNsemMB2jhCSi1znQqnfupdRkSy
Bitcoin-otc
BitBin - earn bitcoins with your pastes!
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 [18] 19 20 21 22 23 24 25 26 27 28 »
  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!