Bitcoin Forum
May 23, 2018, 05:51:22 AM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: p2pool networks.py altcoins  (Read 8863 times)
airborne305
Newbie
*
Offline Offline

Activity: 27
Merit: 0


View Profile
May 17, 2013, 03:33:48 PM
 #1

Hi, i started my journey into the coinworld by pretty much diving straight into the pool side of things. i've pretty much compiled and hosted every coin on a cloud VM for testing. i consider myself a noob in all of this still.

one of my hangups when launching a pool, is i find myself having to wait for somebody else to modify p2pool for whichever altcoin. i would like to get past this hurdle. i have snooped around all of the source files and readmes for whichever coins and have only been able to come up with a fraction of a fraction of the information.

would anybody be willing to explain how, why, where, and what the required information below comes from/means? share your process or formulas for coming up with the numbers and addresses.

i imagine this would be useful for other pool backends as well.   

p2pool > networks.py - Terracoin
Code:
terracoin=math.Object(
        PARENT=networks.nets['terracoin'],
        SHARE_PERIOD=30, # seconds
        CHAIN_LENGTH=24*60*60//30, # shares
        REAL_CHAIN_LENGTH=24*60*60//30, # shares
        TARGET_LOOKBEHIND=200, # shares
        SPREAD=15, # blocks
        IDENTIFIER='a41b2356a1b7d35e'.decode('hex'),
        PREFIX='5623b62178d2b8a3'.decode('hex'),
        P2P_PORT=9323,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**32 - 1,
        PERSIST=True,
        WORKER_PORT=9322,
        BOOTSTRAP_ADDRS='seed1.p2pool.terracoin.org seed2.p2pool.terracoin.org forre.st vps.forre.st 93.97.192.93 66.90.73.83 67.83.108.0 219.84.64.174 24.167.17.248 109.74.195.142 83.211.86.49 94.23.34.145 168.7.116.243 94.174.40.189:9344 89.79.79.195 portals94.ns01.us'.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-alt',
        VERSION_CHECK=lambda v: True,


thanks for your time in advance.

Bitcoin: 1ABoXCTU6M1LzBWoAT3ixJoTWKXPsxbD65
1527054682
Hero Member
*
Offline Offline

Posts: 1527054682

View Profile Personal Message (Offline)

Ignore
1527054682
Reply with quote  #2

1527054682
Report to moderator
1527054682
Hero Member
*
Offline Offline

Posts: 1527054682

View Profile Personal Message (Offline)

Ignore
1527054682
Reply with quote  #2

1527054682
Report to moderator
If you want to be a moderator, report many posts with accuracy. You will be noticed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
walf_man
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
May 17, 2013, 03:54:43 PM
 #2

i need it, too.

hope you success.
maqifrnswa
Sr. Member
****
Offline Offline

Activity: 454
Merit: 250


View Profile
May 18, 2013, 01:40:50 AM
 #3

You also need to check the file
p2pool/bitcoin/networks.py

Nearly all of the variables there are p2pool specific. my comments are in {}, I know some of them but not all of them.

SHARE_PERIOD=30, # seconds {difficulty is adjusted such that p2pool shares are found this often}

CHAIN_LENGTH=24*60*60//30, # shares {how many shares does the p2pool client keep}

REAL_CHAIN_LENGTH=24*60*60//30, # shares {how big is the N in PPLNS}

TARGET_LOOKBEHIND=200, # shares {not sure}
SPREAD=15, # blocks {don't know}

{I believe these are used to identify p2pool shares in the p2p network}
        IDENTIFIER='a41b2356a1b7d35e'.decode('hex'),
        PREFIX='5623b62178d2b8a3'.decode('hex'),
 
P2P_PORT=9323, {port other p2pool clients will connect to you on}

{bitcoin specific for min/max difficulty in units of target, google "bitcoin difficulty" for more info}
MIN_TARGET=0,
MAX_TARGET=2**256//2**32 - 1,

PERSIST=True, {tells p2pool to remember shares, connections, between sessions I believe}

WORKER_PORT=9322, {port miners connect to your p2pool node}

{the following is a list of IPs where you can download a sharechain and find lists of other clients the first time}
BOOTSTRAP_ADDRS='seed1.p2pool.terracoin.org seed2.p2pool.terracoin.org forre.st vps.forre.st 93.97.192.93 66.90.73.83 67.83.108.0 219.84.64.174 24.167.17.248 109.74.195.142 83.211.86.49 94.23.34.145 168.7.116.243 94.174.40.189:9344 89.79.79.195 portals94.ns01.us'.split(' '),

ANNOUNCE_CHANNEL='#p2pool-alt', {if you find a block, you announce it on IRC}

VERSION_CHECK=lambda v: True, {not 100% sure, either tells p2pool to check other p2pool nodes versions or your bitcoind version}
walf_man
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
May 18, 2013, 04:13:26 AM
 #4

p2pool/networks.py
p2pool/bitcoin/networks.py

any other files else?
airborne305
Newbie
*
Offline Offline

Activity: 27
Merit: 0


View Profile
May 18, 2013, 04:21:31 AM
 #5

i believe those are the only two files that need to be modified to fit whichever currency being added.

Bitcoin: 1ABoXCTU6M1LzBWoAT3ixJoTWKXPsxbD65
walf_man
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
May 18, 2013, 12:25:29 PM
 #6

I think so, but i was compared them, it's many files diff.
please move to
https://bitcointalk.org/index.php?topic=208978.0
fenican
Hero Member
*****
Offline Offline

Activity: 826
Merit: 501


View Profile
May 30, 2013, 09:27:58 PM
 #7

There is already a thread on this topic that has most of the information you need:

https://bitcointalk.org/index.php?topic=214512.0
Pages: [1]
  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!