Bitcoin Forum
May 04, 2024, 09:28:59 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 4 »  All
  Print  
Author Topic: [ANN] P2Pool code base for CNC/FTC/JKC/BQC/RYC/MNC/FRK based on newest p2pool  (Read 7837 times)
Narken (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
May 07, 2013, 05:23:59 PM
Last edit: May 13, 2013, 08:24:29 PM by Narken
 #1

PLEASE Post or pm me your server address and which altcoin you run, so I can add some more bootstraps to connect nodes

P2Pool code base for CNC/FTC/JKC/BQC/RYC/MNC based on newest p2pool

Including all latest fixes and tweaks resultning is way less rejects and DOA

https://github.com/narken/p2pool-altcoins


Quick guide on how to start p2pool and port settings:
There is few things you should make note of, first is the port settings and next is command arguments for both the xxxcoind client and p2pool.

First start with you xxxcoind client and let it sync the whole blockchain
Then edit edit xxxcoin.conf with something like this
rpcuser=YOURACCOUNT
rpcpassword=YOURPASSWORD
rpcallowip=127.0.0.1
rpcallowip=192.168.*.*
rpcport=18322
port=183122
daemon=1
server=1

These ports are used by xxcoind and by p2pool when it tries to connect to your client.
Then start either the daemon or QT client (daemon is best)

Next up is p2pool
Start it up with something like this

Code:
run_p2pool.py --net mincoin -f 3 --give-author 0 --w 5643 --bitcoind-address 192.168.1.5 --bitcoind-p2p-port 13992 --bitcoind-rpc-port 13991 YOURACCOUNT YOURPASSWORD

Notice how I specify --bitcoind-address since I'm not running the daemon on same computer as the p2pool server
(Very good idea when running an altcoin that might be "unsafe")
I run all my altcoin daemons in different sandboxs just to make sure they don't do anything naughty

--w is the incoming port you need to open so people can connect to your p2pool server

Next big thing is whether you would like to peer up with other p2pool or not.
Check p2pool/networks.py and find the altcoin you want to run a server for.
See following lines
        IDENTIFIER='e031F5b8c6924210'.decode('hex'),
        PREFIX='e290192ba6d4729a'.decode('hex'),
        P2P_PORT=9772,
P2P_PORT is used by p2pool to connect or allow connection to other peers (p2pool servers)
IDENTIFIER and PREFIX must also match
So open this port also to connect to peers

I think that's all for now, getting late ;-)

Also see this great thread for P2pool information:

https://bitcointalk.org/index.php?topic=153232.0


PLEASE NOTE:
You can't just switch over to the new code base on existing cnc p2pool server.
(You can try, but it will most likly result in incorrect share payment and LOTS of DOA (since share id is changed))

You need to setup a fresh server on a new port and tell your miners to use that one instead.

If you want to connect to the cnc node network you need to open up port 13389 UDP / TCP for incoming and outgoing traffic

Run P2Pool with the "--net chncoin" option for CNC


Please donate for my work if you like it and use it

Bitcoin to 1NyfKgd29XAHkZhjFZbTWhz1YKQX2Dwtrg

CHNcoin to CetTdSEEERtWSrDb2kCqGZpb7TjtaBacpo

Feathercoin to 6vmP85BVbP51eSp1zCQn3xns1D8JWWSAbV

Litecoin to LbRt6djFknA8ZLYGAdp5eb48rVR1xxCuQT

It took a bit of work and lot's of time

UPDATES:
May 12, 2013, 07:25:20: Updated with Franko, use --net franko
May 09, 2013, 09:10:01: Added information on ports and how to start p2pool
May 09, 2013, 09:06:42: Added Royalcoin and Mincoin use --net royal/mincoin
May 07, 2013, 08:18:34: Added BBQcoin, start it with "--net bbqcoin"

Yes sir
1714814939
Hero Member
*
Offline Offline

Posts: 1714814939

View Profile Personal Message (Offline)

Ignore
1714814939
Reply with quote  #2

1714814939
Report to moderator
1714814939
Hero Member
*
Offline Offline

Posts: 1714814939

View Profile Personal Message (Offline)

Ignore
1714814939
Reply with quote  #2

1714814939
Report to moderator
1714814939
Hero Member
*
Offline Offline

Posts: 1714814939

View Profile Personal Message (Offline)

Ignore
1714814939
Reply with quote  #2

1714814939
Report to moderator
If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Narken (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
May 07, 2013, 05:51:08 PM
 #2

Got a lot of request for adding BBQCoin

I'm currently looking at that ;-)

Will let you know of progress

Yes sir
blastbob
Hero Member
*****
Offline Offline

Activity: 602
Merit: 500



View Profile
May 07, 2013, 05:51:44 PM
 #3

Sent you a motivation donation for BBQ Smiley

Bitrated user: blastbob.
Narken (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
May 07, 2013, 06:03:45 PM
 #4

Sent you a motivation donation for BBQ Smiley

Thanks, will be spent on pizza amd beer (and maybe a coke zero for wife if she's lucky ;-)

Yes sir
Narken (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
May 07, 2013, 08:04:07 PM
 #5

Added BBQcoin, test it out

Yes sir
erk
Hero Member
*****
Offline Offline

Activity: 826
Merit: 500



View Profile
May 08, 2013, 03:59:08 AM
 #6

On the p2pool GUI there is allways a sentence that say something like:

"Expected after mining for 24 hours: 2.70 BQC per block."

What does that actually mean? I have not seen a block pay the default address that much, it's usually around half that figure. How is it calculated? I thought it might be all the local payouts added up, but even that didn't match.

The variable is called expected_payout_amount and the line in index.html that calculates it says:

Code:
d3.select('#expected_payout_amount').text(d3.format('.3r')(local/global_stats.pool_hash_rate*local_stats.block_value*(1-local_stats.donation_proportion)));


I just want to modify the text to describe more accurately what the figure means to people viewing the page.





testerx
Hero Member
*****
Offline Offline

Activity: 608
Merit: 500



View Profile
May 08, 2013, 04:05:50 AM
 #7

Hey Narken there's a mistake in the port #'s, the P2P port is listed as 19323 in the /p2pool/bitcoin/networks.py file but 12339 in the /p2pool/networks.py file

I'm not sure which port we should go with for these though, here I was trying to use 12339 as the port but I'm not sure it was really functional even though I think it's what's technically the p2p port for bbqcoin.
https://github.com/teknobasterd/p2pool-bbq/blob/master/p2pool/networks.py
Narken (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
May 08, 2013, 07:10:06 AM
 #8

On the p2pool GUI there is allways a sentence that say something like:

"Expected after mining for 24 hours: 2.70 BQC per block."

What does that actually mean? I have not seen a block pay the default address that much, it's usually around half that figure. How is it calculated? I thought it might be all the local payouts added up, but even that didn't match.

The variable is called expected_payout_amount and the line in index.html that calculates it says:

Code:
d3.select('#expected_payout_amount').text(d3.format('.3r')(local/global_stats.pool_hash_rate*local_stats.block_value*(1-local_stats.donation_proportion)));


I just want to modify the text to describe more accurately what the figure means to people viewing the page.

It tries to calculate how much of the block value that is paid out to local miners on local node.

So lets say your connected to a p2pool network of 100 mh total and your local server does 50 mh
Then your local miners should get 50% of coin value each time a block if found.

I'm tired, hope you understand it ;-)

Yes sir
Narken (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
May 08, 2013, 07:11:57 AM
 #9

Hey Narken there's a mistake in the port #'s, the P2P port is listed as 19323 in the /p2pool/bitcoin/networks.py file but 12339 in the /p2pool/networks.py file

I'm not sure which port we should go with for these though, here I was trying to use 12339 as the port but I'm not sure it was really functional even though I think it's what's technically the p2p port for bbqcoin.
https://github.com/teknobasterd/p2pool-bbq/blob/master/p2pool/networks.py


Port from /p2pool/networks.py is the one you need to open in both directions (UDP and TCP, or only TCP) for node traffic.
In my code base I have tried to select ports that are not used for something else.

Yes sir
erk
Hero Member
*****
Offline Offline

Activity: 826
Merit: 500



View Profile
May 08, 2013, 07:33:51 AM
 #10

I am getting heaps of Warning: local node 127.0.0.1:40100 misbehaving errors in the bbqcoind debug.log like 39,625 of them in the past 12 hours.

Process on socket 40100 is the python script run_p2pool.py

tcp        0      0 localhost:40100         localhost:19323         ESTABLISHED 11818/python    
tcp        0      0 localhost:19323         localhost:40100         ESTABLISHED 1528/bbqcoind  

Any idea what's causing that and how to stop it filling the debug.log?


Can anyone else check their bbqcoind debug log for similar errors?
Narken (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
May 08, 2013, 07:56:10 AM
 #11

I am getting heaps of Warning: local node 127.0.0.1:40100 misbehaving errors in the bbqcoind debug.log like 39,625 of them in the past 12 hours.

Process on socket 40100 is the python script run_p2pool.py

tcp        0      0 localhost:40100         localhost:19323         ESTABLISHED 11818/python    
tcp        0      0 localhost:19323         localhost:40100         ESTABLISHED 1528/bbqcoind  

Any idea what's causing that and how to stop it filling the debug.log?


Can anyone else check their bbqcoind debug log for similar errors?

Hmm not sure. How you tried to start bbqcoind on other ports by changing bbqcoin.conf ??

Make sure to reflect changes when you start up p2pool in the command agrs.

No hmm, the errors is in the debug log file bbqcoind ?

Nothing in p2pool log ?

Yes sir
erk
Hero Member
*****
Offline Offline

Activity: 826
Merit: 500



View Profile
May 08, 2013, 08:10:18 AM
 #12

I am getting heaps of Warning: local node 127.0.0.1:40100 misbehaving errors in the bbqcoind debug.log like 39,625 of them in the past 12 hours.

Process on socket 40100 is the python script run_p2pool.py

tcp        0      0 localhost:40100         localhost:19323         ESTABLISHED 11818/python    
tcp        0      0 localhost:19323         localhost:40100         ESTABLISHED 1528/bbqcoind  

Any idea what's causing that and how to stop it filling the debug.log?


Can anyone else check their bbqcoind debug log for similar errors?

Hmm not sure. How you tried to start bbqcoind on other ports by changing bbqcoin.conf ??

Make sure to reflect changes when you start up p2pool in the command agrs.

No hmm, the errors is in the debug log file bbqcoind ?

Nothing in p2pool log ?

Could putting -debug in the p2pool startup command cause that? I took it out and restarted p2pool and the errors seem to have stopped.




LeftToeCut
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile
May 09, 2013, 05:11:04 PM
 #13

Anyone working on getting YACoin here as well?
Narken (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
May 09, 2013, 08:32:16 PM
 #14

Added mincoin and royalcoin

Yes sir
blastbob
Hero Member
*****
Offline Offline

Activity: 602
Merit: 500



View Profile
May 09, 2013, 08:34:18 PM
 #15

Added mincoin and royalcoin

Great work!

Remember to donate guys. Better with one good and updated source for p2pool.

Bitrated user: blastbob.
Narken (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
May 09, 2013, 08:41:31 PM
 #16

Added mincoin and royalcoin

Great work!

Remember to donate guys. Better with one good and updated source for p2pool.

Yearh should use my time on "premining/early mining" instead

Or be among the first to set up servers for all these "crap" coins ;-)

Nevertheless it's updated

Yes sir
blastbob
Hero Member
*****
Offline Offline

Activity: 602
Merit: 500



View Profile
May 09, 2013, 08:43:58 PM
 #17

Added mincoin and royalcoin

Great work!

Remember to donate guys. Better with one good and updated source for p2pool.

Yearh should use my time on "premining/early mining" instead

Or be among the first to set up servers for all these "crap" coins ;-)

Nevertheless it's updated

Dont complain, just sent you a BTC Smiley
033bd6fa6a19ffcf0935cde18273dbb4bb1096ea1d42eb5bdb8d0e110aa4f6e5

Bitrated user: blastbob.
Narken (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
May 09, 2013, 09:28:19 PM
 #18

Added mincoin and royalcoin

Great work!

Remember to donate guys. Better with one good and updated source for p2pool.

Yearh should use my time on "premining/early mining" instead

Or be among the first to set up servers for all these "crap" coins ;-)

Nevertheless it's updated

Dont complain, just sent you a BTC Smiley
033bd6fa6a19ffcf0935cde18273dbb4bb1096ea1d42eb5bdb8d0e110aa4f6e5

Bob your the best, owe you a beer ;-)

Updated main post with information on ports and how to start p2pool

Yes sir
infoporter
Full Member
***
Offline Offline

Activity: 124
Merit: 100


Hardhat Required in This Area


View Profile WWW
May 09, 2013, 09:46:59 PM
 #19

This seems to also have Bitcoin, Litecoin and TerraCoin network settings still available. Can it still be used to mine those coins too?

Vircurvault - The Heavy Duty Virtual Currency Paper Wallet (It floats!)
Coin Foreman | Virtual Currency Exchange | Reliable VPS Hosting | Domain Names for BTC
Mushoz
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


Bitbuy


View Profile WWW
May 09, 2013, 10:18:46 PM
 #20

Very cool, thank you very much for this! Does this fork have it's own version numbers? It's difficult to keep P2Pool up-to-date if you can't tell what version I'm running and what the latest version is. Thank you very much again! Awesome work!

www.bitbuy.nl - Koop eenvoudig, snel en goedkoop bitcoins bij Bitbuy!
Pages: [1] 2 3 4 »  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!