Bitcoin Forum
June 19, 2024, 09:22:36 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 [3] 4 5 6 7 8 »  All
  Print  
Author Topic: Need p2pool for BitBar. Any p2pool gods??  (Read 10017 times)
rbdrbd (OP)
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250



View Profile
May 03, 2013, 03:14:58 AM
 #41

Ok guys, modified pool code (what I have so far) is at https://github.com/rbdrbd/p2pool

If someone can get that working...go at it. Here's where I am at. Ubuntu Linux 13.04. bitbard installed. My bitbar.conf looks like:

Code:
server=1
daemon=1
rpcuser=rpcuser
rpcpassword=RPCPASS
rpcport=8778

I then launch p2pool with:

Code:
python run_p2pool.py  --debug --net bitbar --max-conns 300 -f 0 --give-author 0 --bitcoind-p2p-port 8777 --bitcoind-rpc-po 8778 rpcuser RPCPASS

I see the following:

Code:
root@minerp2pool:/opt/p2pool# python run_p2pool.py  --debug --net bitbar --max-conns 300 -f 0 --give-author 0 --bitcoind-p2p-port 8777 --bitcoind-rpc-po 8778 rpcuser RPCPASS
2013-05-02 23:07:41.188108 p2pool (version 11.4.1-2-g596c748-dirty)
2013-05-02 23:07:41.188182
2013-05-02 23:07:41.188230 Testing bitcoind RPC connection to 'http://127.0.0.1:8778/' with username 'rpcuser'...
2013-05-02 23:07:41.212216     ...success!
2013-05-02 23:07:41.212279     Current block hash: 986d21284e6cb446c24c3a410ff63c434d5173a5732258145d73d837
2013-05-02 23:07:41.212330     Current block height: 4484
2013-05-02 23:07:41.212372
2013-05-02 23:07:41.212684 Testing bitcoind P2P connection to '127.0.0.1:8777'...

^ HANGS HERE FOR AWHILE

2013-05-02 23:08:42.039525 > Bitcoin connection lost. Reason: Connection was closed cleanly.
2013-05-02 23:09:44.051923 > Bitcoin connection lost. Reason: Connection was closed cleanly.
2013-05-02 23:10:46.016209 > Bitcoin connection lost. Reason: Connection was closed cleanly.
2013-05-02 23:11:48.025670 > Bitcoin connection lost. Reason: Connection was closed cleanly.
2013-05-02 23:12:50.047023 > Bitcoin connection lost. Reason: Connection was closed cleanly.


Meanwhile p2pool is not listening on any ports. Balthazar / blasbob / etc: Any ideas?

-Robby
rbdrbd (OP)
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250



View Profile
May 03, 2013, 03:16:33 AM
 #42

I'm thinking something is still off in the code...

netstat -anp starts like:

Code:
root@minerp2pool:/opt/p2pool# netstat -anp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:8777            0.0.0.0:*               LISTEN      2464/bitbard    
tcp        0      0 127.0.0.1:8778          0.0.0.0:*               LISTEN      2464/bitbard  

So I think the ports are good. I disabled tcp6 just in case...no change.

Weird message in the bitbard's debug.log around the time of connect is:

Code:
PROCESSMESSAGE MESSAGESTART NOT FOUND
j980
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
May 03, 2013, 03:19:13 AM
 #43


Passion_ltc ran a p2pool, he would know. I'm no expert, but shouldn't it be paying out to the miners rather than the p2pool address?

Yeah, that's what's worrying me too.   Huh


Why don't you try making it pay out to the miners connected to the pool via how many shares they have submitted divided by the number of total shares for that block. It wouldn't hurt, considering no payouts have been sent yet. Payouts should have started by now.

edit: pulling miners for now until payouts get sorted out.

Yeah that's what it should do of course.  I have not seen any payments at the p2pool address though in the BitBar client, they only show in  the p2pool public stats.  The p2pool address is also the largest one of two that gets listed at the bottom of the stats page (payouts if a block were found now).

I think it's probably best not to add to much hashrate to this until we now that payouts are indeed getting done correctly.
j980
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
May 03, 2013, 03:20:11 AM
 #44

Did you use any tutorials besides https://bitcointalk.org/index.php?topic=18313.0   ?
No, I didn't use much tutorial at all.  But I have quite some IT experience and I just tried setting up a feathercoin pool the day before.
Random Bit
Member
**
Offline Offline

Activity: 70
Merit: 10


So many coins so little hash power


View Profile
May 03, 2013, 03:21:17 AM
 #45

Might be off track but did you configure your default pool address?   Looking at the payout chart and table and it doesn't seem to be right.

Course I don't know how it should look but taking a stab  Huh

B6EVsmqE5rcEcLPjuA7MExKPz5RrnvBXeJ
rbdrbd (OP)
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250



View Profile
May 03, 2013, 03:21:39 AM
 #46

I have been experimenting with my own BitBar p2pool.  If anyone wants to help me test it, please use

Address = bitbar1.no-ip.biz:8336
User = Your BitBar Address
Pass = x (or anything)
Fee = 1%

Stats at http://bitbar1.no-ip.biz:8336/static

The addresses of two of my cpuminer workers show up correctly.  My other cpuminer worker and cgminer worker don't show up yet.  If you want to try this out, please don't throw all your Thash/s at this at once and please check that you get paid when you want to use it for a longer time.

I'm still trying to get it to work in combination with other p2p pools.  So, any other p2pools ready yet?





Do you have the updated bitbar p2pool code on github, or setup instructions for others to set up their own p2pools?
xwebnetwork
Hero Member
*****
Offline Offline

Activity: 684
Merit: 500


Veni. Vidi. Vici.


View Profile WWW
May 03, 2013, 03:24:38 AM
 #47

Throwing 3000KHs at it. All rejected so far.

Edit: Now starting to get some accepted.

Validity.Bringing Advanced Utility to the Blockchain with the Validity SmartChain!
Website | BTCT Thread
j980
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
May 03, 2013, 03:27:19 AM
 #48

Might be off track but did you configure your default pool address?   Looking at the payout chart and table and it doesn't seem to be right.

Course I don't know how it should look but taking a stab  Huh

B6EVsmqE5rcEcLPjuA7MExKPz5RrnvBXeJ

I will look into that.  Default pool address was requested from RPC bitbar server automatically (and listed in my BitBar client).  Setting one manually was not possible with this p2pool (although it was with the feathercoin pool I tried before).

I have been experimenting with my own BitBar p2pool.  If anyone wants to help me test it, please use

Address = bitbar1.no-ip.biz:8336
User = Your BitBar Address
Pass = x (or anything)
Fee = 1%

Stats at http://bitbar1.no-ip.biz:8336/static

The addresses of two of my cpuminer workers show up correctly.  My other cpuminer worker and cgminer worker don't show up yet.  If you want to try this out, please don't throw all your Thash/s at this at once and please check that you get paid when you want to use it for a longer time.

I'm still trying to get it to work in combination with other p2p pools.  So, any other p2pools ready yet?

Do you have the updated bitbar p2pool code on github, or setup instructions for others to set up their own p2pools?
I have used the updated code you posted in one of the first posts of this thread.  I did adapt some of the ports to make it all work... or well, look like it works while trying with just two cpuminers.
j980
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
May 03, 2013, 03:28:40 AM
 #49

Do you have the updated bitbar p2pool code on github, or setup instructions for others to set up their own p2pools?

I'm happy to commit the changes to your github code base, at least once I'm sure enough this works.  I only changed a few things in networks.py though.
mrSprinkles
Full Member
***
Offline Offline

Activity: 265
Merit: 100



View Profile
May 03, 2013, 03:28:45 AM
 #50

I have used the updated code you posted in one of the first posts of this thread.  I did adapt some of the ports to make it all work... or well, look like it works while trying with just two cpuminers.

define "works"
rbdrbd (OP)
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250



View Profile
May 03, 2013, 03:31:52 AM
 #51

Do you have the updated bitbar p2pool code on github, or setup instructions for others to set up their own p2pools?

I'm happy to commit the changes to your github code base, at least once I'm sure enough this works.  I only changed a few things in networks.py though.

Sure, or you could just create your own fork, since I may have changed more than you did (which is why it may not be working for me). The p2pool command you use to launch, as well as your bitbar.conf may be helpful as well. Thanks for getting this up!!
j980
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
May 03, 2013, 03:33:12 AM
 #52


Ok.  I will fork it and post my changes, as well as my bitbar.conf there.  Give me an hour or so.

jimhsu
Sr. Member
****
Offline Offline

Activity: 364
Merit: 264


View Profile
May 03, 2013, 03:38:26 AM
 #53

281 accepted shares, don't seem to be getting any transactions. I think it's 512 blocks before mature though.

Going to take it off for now and see if payouts go through.

Dans les champs de l'observation le hasard ne favorise que les esprits préparé
j980
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
May 03, 2013, 03:48:41 AM
 #54

@rbdrbd

After looking at the differences and the changes I made, I think you should change

P2P_PORT = 7777
to
P2P_PORT = 8777

In networks.py
kokojie
Legendary
*
Offline Offline

Activity: 1806
Merit: 1003



View Profile
May 03, 2013, 03:49:52 AM
 #55

281 accepted shares, don't seem to be getting any transactions. I think it's 512 blocks before mature though.

Going to take it off for now and see if payouts go through.

Not sure if p2pool is subject to the 512 block thing.

btc: 15sFnThw58hiGHYXyUAasgfauifTEB1ZF6
j980
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
May 03, 2013, 03:50:24 AM
 #56

281 accepted shares, don't seem to be getting any transactions. I think it's 512 blocks before mature though.

Going to take it off for now and see if payouts go through.

Oh, so, after 512 p2pool blocks, the actual BitBar payment goes through?

That would make a lot of sense!  

Payouts stat list is still wrong.
jimhsu
Sr. Member
****
Offline Offline

Activity: 364
Merit: 264


View Profile
May 03, 2013, 03:52:23 AM
 #57

I don't know, though P2Pool usually does have a lag time before blocks go through. Not sure if it had anything to do with the 512 blocks.

Dans les champs de l'observation le hasard ne favorise que les esprits préparé
j980
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
May 03, 2013, 03:58:00 AM
 #58

Well, I'm not sure either.

Code with my modifications is now up at:

http://www.github.com/j980/p2pool
j980
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
May 03, 2013, 04:03:53 AM
 #59

Bitbar.conf is now in the repository too

@Worker BBrG...FUCA: Please restart your miner, it is producing nonsense.
jimhsu
Sr. Member
****
Offline Offline

Activity: 364
Merit: 264


View Profile
May 03, 2013, 04:21:33 AM
 #60

BTW i think your blocks are not making it onto the network.

http://bitbar1.no-ip.biz:8336/static/share.html#000000001434e3763fbc593ae27c75903d81e3a29d96ff26d7696037a11a6870

Prev block is 000000007d3a22d3a8c90ddb6bce57186395498fc73fb628281c7851e169e376

Quote

23:17:04

getblock 000000007d3a22d3a8c90ddb6bce57186395498fc73fb628281c7851e169e376


23:17:04

{
"hash" : "000000007d3a22d3a8c90ddb6bce57186395498fc73fb628281c7851e169e376",
"confirmations" : 5,
"size" : 265,
"height" : 4553,
"version" : 3,
"merkleroot" : "7ce6aa90ec2901b3c222028f6632dbad228d39c14308ceeaed0bef6d9e919d05",
"mint" : 0.23429600,
"time" : 1367554443,
"nonce" : 3143371264,
"bits" : "1d0092a2",
"difficulty" : 1.74583089,
"previousblockhash" : "0000000029575d10aa1b4fe4d30b32e909ff97a516212223b409ce961d849193",
"nextblockhash" : "000000007f066bf0e276e985b7bc15ad11aff905926ee7143268a594a858ed69",
"flags" : "proof-of-work",
"proofhash" : "000000007d3a22d3a8c90ddb6bce57186395498fc73fb628281c7851e169e376",
"entropybit" : 0,
"modifier" : "8753143b44b210d3",
"modifierchecksum" : "45c57057",
"tx" : [
"7ce6aa90ec2901b3c222028f6632dbad228d39c14308ceeaed0bef6d9e919d05"
],
"signature" : "3045022075a3cdc6fdd321d871ff0694d4cf53f8e3f22833e12ae0c08092d47b74d4e003022100e 27d2f1c894bb912de85618a240a3640161c8088a9ee721d7aec5ace532a26f3"
}

But getblock 000000001434e3763fbc593ae27c75903d81e3a29d96ff26d7696037a11a6870 returns

Quote
23:21:12

Block not found (code -5)

And the next block (4554) is 000000007f066bf0e276e985b7bc15ad11aff905926ee7143268a594a858ed69

Dans les champs de l'observation le hasard ne favorise que les esprits préparé
Pages: « 1 2 [3] 4 5 6 7 8 »  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!