Bitcoin Forum
December 05, 2016, 12:45:13 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
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 29 »
  Print  
Author Topic: p2pool - Decentralized, Absolutely DoS-Proof, Pool Hopping-Proof Pool [archival]  (Read 31685 times)
m3ta
Sr. Member
****
Offline Offline

Activity: 427



View Profile WWW
January 17, 2012, 02:23:42 AM
 #421

If you have any ideas for how to clarify the documentation, you could help improve it. Smiley

On to the Wiki I go. Smiley

Why the frell so many retards spell "ect" as an abbreviation of "Et Cetera"? "ETC", DAMMIT! http://en.wikipedia.org/wiki/Et_cetera

Host:/# rm -rf /var/forum/trolls
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480941913
Hero Member
*
Offline Offline

Posts: 1480941913

View Profile Personal Message (Offline)

Ignore
1480941913
Reply with quote  #2

1480941913
Report to moderator
1480941913
Hero Member
*
Offline Offline

Posts: 1480941913

View Profile Personal Message (Offline)

Ignore
1480941913
Reply with quote  #2

1480941913
Report to moderator
1480941913
Hero Member
*
Offline Offline

Posts: 1480941913

View Profile Personal Message (Offline)

Ignore
1480941913
Reply with quote  #2

1480941913
Report to moderator
c_k
Donator
Sr. Member
*
Offline Offline

Activity: 242



View Profile
January 17, 2012, 09:14:01 AM
 #422

How to use p2pool with an accompanying standalone bitcoind
(since the windows gui version of bitcoin 0.5.1 crashes frequently when used with p2pool)

Assumptions:

OS: Microsoft Windows 7
Bitcoin: Latest stable release installed and working - http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.5.1/bitcoin-0.5.1-win32-setup.exe/download
p2pool: you'll be slightly off the beaten path with this configuration as you're specifying the bitcoin address to send generated bitcoins and not using the second bitcoin processes wallet


Code:
logtimestamps=1

  • Create the folder "%programfiles%\p2pool\bitcoind-data"
  • Create "%programfiles%\p2pool\bitcoind-data\bitcoin.conf" with your favorite text editor and populate it with this:

Code:
server=1
logtimestamps=1
port=18333
rpcport=18332
rpcuser=bitcoinusername
rpcpassword=bitcoinpassword
rpcallowip=*

  • Take note of the folder name of the latest current p2pool code - it is in "%programfiles%\p2pool"
  • Create "%programfiles%\p2pool\p2pool.cmd" with your favorite text editor and populate it with this:

Code:
@echo off
title p2pool
echo.
echo running p2pool ...
echo.
C:\Python27\python.exe "%programfiles%\p2pool\folder-name-of-the-latest-current-p2pool-code\run_p2pool.py" --net bitcoin --address yourbitcoinaddresshere --bitcoind-address 127.0.0.1 --bitcoind-rpc-port 18332 --bitcoind-p2p-port 18333 bitcoinusername bitcoinpassword
echo.
echo p2pool stopped.
echo.
pause

eg.

Code:
@echo off
title p2pool
echo.
echo running p2pool ...
echo.
C:\Python27\python.exe "%programfiles%\p2pool\forrestv-p2pool-4f6c2e2\run_p2pool.py" --net bitcoin --address 12uN6G1uAtn7G29qfTdLD9des4y63Whr61 --bitcoind-address 127.0.0.1 --bitcoind-rpc-port 18332 --bitcoind-p2p-port 18333 bitcoinusername bitcoinpassword
echo.
echo p2pool stopped.
echo.
pause

  • Create "%programfiles%\p2pool\bitcoind.cmd" with your favorite text editor and populate it with this:

Code:
@echo off
title bitcoind
echo.
if exist "%programfiles%\bitcoin\daemon\bitcoind.exe" (set programfilesx86=0)
if exist "%programfiles(x86)%\bitcoin\daemon\bitcoind.exe" (set programfilesx86=1)
if %programfilesx86%==0 (goto :programfiles)
if %programfilesx86%==1 (goto :programfilesx86)
echo ERROR! bitcoind.exe not found in either "%programfiles%\bitcoin\daemon\" or "%programfiles(x86)%\bitcoin\daemon\" - giving up!
echo.
pause
goto:eof
:programfiles
echo running bitcoind.exe from "%programfiles%\Bitcoin\daemon\" ...
"%programfiles%\Bitcoin\daemon\bitcoind.exe" -datadir="%programfiles%\p2pool\bitcoind-data"
echo.
echo bitcoind stopped.
echo.
pause
goto:eof
:programfilesx86
echo running bitcoind.exe from "%programfiles(x86)%\Bitcoin\daemon\" ...
"%programfiles(x86)%\Bitcoin\daemon\bitcoind.exe" -datadir="%programfiles%\p2pool\bitcoind-data"
echo.
echo bitcoind stopped.
echo.
pause

  • Copy blk*.dat from %appdata%\bitcoin to %programfiles%\p2pool\bitcoind-data
  • Run "%programfiles%\p2pool\bitcoind.cmd"
  • Run "%programfiles%\p2pool\p2pool.cmd"

You should now be able to mine on your machine to 127.0.0.1:9332 or to your machines IP on port 9332 on your LAN Smiley

m3ta
Sr. Member
****
Offline Offline

Activity: 427



View Profile WWW
January 17, 2012, 01:01:03 PM
 #423

After 36 hours of port correctly forwarded, still only connected to 10 peers.
I think I reached the "I only believe it if I see it" phase regarding more than 10 peers being connected.

Why the frell so many retards spell "ect" as an abbreviation of "Et Cetera"? "ETC", DAMMIT! http://en.wikipedia.org/wiki/Et_cetera

Host:/# rm -rf /var/forum/trolls
fehknt
Newbie
*
Offline Offline

Activity: 13


View Profile
January 17, 2012, 02:19:16 PM
 #424

I currently have 30 peers reported.  Just reset to update to the latest from git - hit 10 peers quickly, after couple minutes it's up to 13.  So it CAN happen...

I try to be helpful and/or useful.  If you agree, this is a great way to show it: 1P3MW6fuHgA9TCAXoGy9X7KupfypGn7Dx9
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218


Gerald Davis


View Profile
January 17, 2012, 03:26:06 PM
 #425

Also I would use a port scanning tool to make sure the port is open and forwarded and not getting hung up somewhere between the wide open internet and the local daemon. 

I find http://www.canyouseeme.org/ useful for a sanity check.
dirtycat
Sr. Member
****
Offline Offline

Activity: 455



View Profile
January 17, 2012, 05:43:39 PM
 #426

After 36 hours of port correctly forwarded, still only connected to 10 peers.
I think I reached the "I only believe it if I see it" phase regarding more than 10 peers being connected.

im with you.. I have NEVER seen more than 10.

poop!
rjk
Sr. Member
****
Offline Offline

Activity: 420


1ngldh


View Profile
January 17, 2012, 05:48:16 PM
 #427

After 36 hours of port correctly forwarded, still only connected to 10 peers.
I think I reached the "I only believe it if I see it" phase regarding more than 10 peers being connected.

im with you.. I have NEVER seen more than 10.
Same... perhaps its it choking on NAT? While I have a NAT in place, it has multiple public IPs, one of which is assigned to the server I was using - basically each and every port is forwarded. This is instead of assigning the server a public IP, because it makes internal networking easier for me.

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

Activity: 56


View Profile
January 17, 2012, 06:08:14 PM
 #428

After 36 hours of port correctly forwarded, still only connected to 10 peers.
I think I reached the "I only believe it if I see it" phase regarding more than 10 peers being connected.

im with you.. I have NEVER seen more than 10.


I have the same problem. I noticed that when i get a new ip address (24h disconnect) my bitcoin and namecoin connections drop to 8 and stay there untill i restart them. But that doesnt work for p2pool. Only one time I had 14 peers in p2pool, but never again.


edit: We need IPv6  Wink  (No more NAT)
btc_artist
Full Member
***
Offline Offline

Activity: 154


Bitcoin!


View Profile WWW
January 17, 2012, 06:37:37 PM
 #429

It would be really cool if this were integrated directly into cgminer.  forrestv what do you think of that?  Have you had any dialog with ckolivas at all? 

BTC: 1CDCLDBHbAzHyYUkk1wYHPYmrtDZNhk8zf
LTC: LMS7SqZJnqzxo76iDSEua33WCyYZdjaQoE
m3ta
Sr. Member
****
Offline Offline

Activity: 427



View Profile WWW
January 17, 2012, 06:43:41 PM
 #430

There just aren't many users currently (only me at the moment). Can you post any Python error messages you see?

Only you? wth, am I invisible? Smiley
No errors, just... 10 peers. That's it.

Why the frell so many retards spell "ect" as an abbreviation of "Et Cetera"? "ETC", DAMMIT! http://en.wikipedia.org/wiki/Et_cetera

Host:/# rm -rf /var/forum/trolls
m3ta
Sr. Member
****
Offline Offline

Activity: 427



View Profile WWW
January 17, 2012, 06:44:42 PM
 #431

It would be really cool if this were integrated directly into cgminer.  forrestv what do you think of that?  Have you had any dialog with ckolivas at all? 

+1. I'd be willing to sponsor this.

Why the frell so many retards spell "ect" as an abbreviation of "Et Cetera"? "ETC", DAMMIT! http://en.wikipedia.org/wiki/Et_cetera

Host:/# rm -rf /var/forum/trolls
m3ta
Sr. Member
****
Offline Offline

Activity: 427



View Profile WWW
January 17, 2012, 06:52:03 PM
 #432

Also I would use a port scanning tool to make sure the port is open and forwarded and not getting hung up somewhere between the wide open internet and the local daemon.  

I find http://www.canyouseeme.org/ useful for a sanity check.

Been there, done that. Smiley

Code:
Success: I can see your service on xx.247.9.10 on port (9333)
Your ISP is not blocking port 9333

Also, first thing I did was an nmap from an external server. Result: "open". I knew that, but I double-checked anyway.

So.. yeah. Maybe i'm being paranoid, but the whole ">10 peers" really seems utopic/flawed.

Why the frell so many retards spell "ect" as an abbreviation of "Et Cetera"? "ETC", DAMMIT! http://en.wikipedia.org/wiki/Et_cetera

Host:/# rm -rf /var/forum/trolls
c_k
Donator
Sr. Member
*
Offline Offline

Activity: 242



View Profile
January 17, 2012, 07:00:21 PM
 #433

Peers really doesn't matter, if you have 10 you're doing just fine Smiley

Here's a snapshot of my stats after running for 12 hours with a fresh git checkout before I launched p2pool:

Code:
2012-01-18 07:56:29.497000 Pool: 84459MH/s in 17381 shares (12581/17385 verified) Recent: 3.66% >3089MH/s Shares: 122 (17 orphan, 1 dead) Peers: 12
2012-01-18 07:56:29.497000 Average time between blocks: 0.74 days
2012-01-18 07:56:29.497000 Pool stales: 9% Own: 16±6% Own efficiency: 93±7%
2012-01-18 07:56:36.796000 New work for worker! Share difficulty: 165.577356 Payout if block: 1.576102 BTC Total block value: 50.155000 BTC including 95 transactions

m3ta
Sr. Member
****
Offline Offline

Activity: 427



View Profile WWW
January 17, 2012, 07:11:43 PM
 #434

Peers really doesn't matter, if you have 10 you're doing just fine Smiley

Here's a snapshot of my stats after running for 12 hours with a fresh git checkout before I launched p2pool:

Code:
2012-01-18 07:56:29.497000 Pool: 84459MH/s in 17381 shares (12581/17385 verified) Recent: 3.66% >3089MH/s Shares: 122 (17 orphan, 1 dead) Peers: 12
2012-01-18 07:56:29.497000 Average time between blocks: 0.74 days
2012-01-18 07:56:29.497000 Pool stales: 9% Own: 16±6% Own efficiency: 93±7%
2012-01-18 07:56:36.796000 New work for worker! Share difficulty: 165.577356 Payout if block: 1.576102 BTC Total block value: 50.155000 BTC including 95 transactions

I was gonna say "12 peeers? arrghhhhh Envy is a deadly sin!", but if you say 10 is ok, then.. cheers. Smiley

Why the frell so many retards spell "ect" as an abbreviation of "Et Cetera"? "ETC", DAMMIT! http://en.wikipedia.org/wiki/Et_cetera

Host:/# rm -rf /var/forum/trolls
fehknt
Newbie
*
Offline Offline

Activity: 13


View Profile
January 17, 2012, 08:15:57 PM
 #435

Might be because I have a static IP - back up to 25 peers as of now.  Well, I'm not contributing (much) hashing power but at least I'm giving a little network stability?

I try to be helpful and/or useful.  If you agree, this is a great way to show it: 1P3MW6fuHgA9TCAXoGy9X7KupfypGn7Dx9
gnar1ta$
Donator
Hero Member
*
Offline Offline

Activity: 756


View Profile
January 17, 2012, 11:49:00 PM
 #436

Been running merged for 24+ hrs with cgminer on defaults and I 8 and was a bit shocked at the E, U, and Rejected, which would normally be 120%, 19.5/m and .6%. Can anyone recommend settings changes or do these numbers look good?

Code:
cgminer version 2.1.2 - Started: [2012-01-16 15:03:27]
--------------------------------------------------------------------------------
 (5s):1356.2 (avg):1353.6 Mh/s | Q:89492  A:3620  R:210  HW:0  E:4%  U:2.18/m
 TQ: 8  ST: 9  SS: 0  DW: 80039  NB: 185  LW: 86049  GF: 1  RF: 0
 Connected to http://10.0.0.2:9332 with LP as user miner2
 Block: 000005c8ec2e9da784e646e5651e59c4...  Started: [18:44:10]

Code:
Pool: http://10.0.0.2:9332
Has long-poll support
 Queued work requests: 89237
 Share submissions: 3822
 Accepted shares: 3612
 Rejected shares: 210
 Reject ratio: 5.5%
 Efficiency (accepted / queued): 4%
 Discarded work due to new blocks: 79812
 Stale submissions discarded due to new blocks: 0
 Unable to get work from server occasions: 1
 Submitting work remotely delay occasions: 0

Here is p2pool - 2 rigs connect here.

Code:
2012-01-17 18:43:14.505698 New work for worker! Share difficulty: 172.908439 Payout if block: 2.024835 BTC Total block value: 50.037500 BTC including 50 transactions
2012-01-17 18:43:16.670359 Pool: 83856MH/s in 17357 shares (17361/17361 verified) Recent: 4.68% >3925MH/s Shares: 461 (28 orphan, 28 dead) Peers: 10
2012-01-17 18:43:16.670527 Average time between blocks: 0.74 days
2012-01-17 18:43:16.670613 Pool stales: 11% Own: 12±3% Own efficiency: 99±3%

Losing hundreds of Bitcoins with the best scammers in the business - BFL, Avalon, KNC, HashFast.
forrestv
Hero Member
*****
Offline Offline

Activity: 510


View Profile
January 18, 2012, 02:33:09 AM
 #437

Been there, done that. Smiley

Code:
Success: I can see your service on xx.247.9.10 on port (9333)
Your ISP is not blocking port 9333

Also, first thing I did was an nmap from an external server. Result: "open". I knew that, but I double-checked anyway.

So.. yeah. Maybe i'm being paranoid, but the whole ">10 peers" really seems utopic/flawed.

I made my node connect to your address (using the -n option), so you should have at least 11 peers now. Smiley Something might be wrong with the share ranking algorithm, though if I look at the address database, it says that your node has only been up for about 22 hours (since unix timestamp 1326773440). Does that sound right..?

It would be really cool if this were integrated directly into cgminer.  forrestv what do you think of that?  Have you had any dialog with ckolivas at all?  

I worked a bit with him to get cgminer and P2Pool working well together. I don't know how useful that would be... A lot of people have multiple machines running cgminer and one P2Pool instance. Why do you want it integrated? I'd think some kind of monitoring tool that started P2Pool and cgminer might be better.

Been running merged for 24+ hrs with cgminer on defaults and I 8 and was a bit shocked at the E, U, and Rejected, which would normally be 120%, 19.5/m and .6%. Can anyone recommend settings changes or do these numbers look good?

P2Pool has characteristics very different from most mining pools. Work is given a difficulty of 8 instead of 1, which explains the decreased U. Work expiring more quickly (every 10 seconds instead of 10 minutes) decreases cgminer's displayed efficiency and increases rejects.
P2Pool's displayed efficiency is very close to 100%, so everything seems okay. Efficiency is the ultimate indicator of how well everything is working.

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
m3ta
Sr. Member
****
Offline Offline

Activity: 427



View Profile WWW
January 18, 2012, 02:38:58 PM
 #438


I made my node connect to your address (using the -n option), so you should have at least 11 peers now. Smiley Something might be wrong with the share ranking algorithm, though if I look at the address database, it says that your node has only been up for about 22 hours (since unix timestamp 1326773440). Does that sound right..?


I got your latest changes from Git, had 2 mns downtime, so yeah, 22 hours at the time of your post.. that is correct.
Interestingly enough, I did notice the "Peers:11 (1 incoming)" this morning, and now, it even got to "Peers: 12 (2 incoming)".

Sooooo, it seems it's .. erm.. "hard" to go over 10 peers, but it can be done.
And if, like c_k said, "10 is enough", then everything is working fine. Smiley

Why the frell so many retards spell "ect" as an abbreviation of "Et Cetera"? "ETC", DAMMIT! http://en.wikipedia.org/wiki/Et_cetera

Host:/# rm -rf /var/forum/trolls
forrestv
Hero Member
*****
Offline Offline

Activity: 510


View Profile
January 18, 2012, 03:05:41 PM
 #439

Win32 development snapshot: http://u.forre.st/u/lirlewiy/p2pool_win32_633dd68.zip I've changed the packaging a bit - everything is combined into one executable file now. Tell me if you have any problems with it! Smiley

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
JWU42
Legendary
*
Offline Offline

Activity: 1484


View Profile
January 18, 2012, 03:43:10 PM
 #440

I might play with this later tonight.  Like what I am reading as it seems to be the perfect mix of solo mining and pooled mining.

GPG PubKey | THREEMA | OTC | HeatWare | 1JWU42QLGFESoQCC4iPzUDTRiC9nx5bi95
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 29 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!