Bitcoin Forum
May 06, 2024, 01:20:19 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: p2pool networks.py altcoins  (Read 919 times)
airborne305 (OP)
Newbie
*
Offline Offline

Activity: 27
Merit: 0


View Profile
May 18, 2013, 02:25:15 AM
 #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,

if anybody can assist with this, i'll get a pool online with 0% fees for 24 hours on a hosted VM
thanks for your time in advance.
1714958419
Hero Member
*
Offline Offline

Posts: 1714958419

View Profile Personal Message (Offline)

Ignore
1714958419
Reply with quote  #2

1714958419
Report to moderator
1714958419
Hero Member
*
Offline Offline

Posts: 1714958419

View Profile Personal Message (Offline)

Ignore
1714958419
Reply with quote  #2

1714958419
Report to moderator
1714958419
Hero Member
*
Offline Offline

Posts: 1714958419

View Profile Personal Message (Offline)

Ignore
1714958419
Reply with quote  #2

1714958419
Report to moderator
The forum was founded in 2009 by Satoshi and Sirius. It replaced a SourceForge forum.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714958419
Hero Member
*
Offline Offline

Posts: 1714958419

View Profile Personal Message (Offline)

Ignore
1714958419
Reply with quote  #2

1714958419
Report to moderator
1714958419
Hero Member
*
Offline Offline

Posts: 1714958419

View Profile Personal Message (Offline)

Ignore
1714958419
Reply with quote  #2

1714958419
Report to moderator
1714958419
Hero Member
*
Offline Offline

Posts: 1714958419

View Profile Personal Message (Offline)

Ignore
1714958419
Reply with quote  #2

1714958419
Report to moderator
ondratra
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250



View Profile
May 18, 2013, 10:27:59 AM
 #2

I am investigating the same thing! Cheesy

Also do you know how can anyone set fees on p2pool? You have to hardcode your wallet address to code and then use --give-author?
eule
Hero Member
*****
Offline Offline

Activity: 756
Merit: 501


View Profile
May 18, 2013, 11:05:16 AM
 #3

Also do you know how can anyone set fees on p2pool? You have to hardcode your wallet address to code and then use --give-author?
No, the -a parameter specifies your payout address and -f the fee percentage. If no address is specified (e.g. the yacoin p2pool doesn't accept the -a parameter, which is weird but whatever), the fee goes to the wallet of the coin client running in the background on the server.

Can't help much with the networks.py (not the only file that needs to be modified i think), best bet is to donate a little something to Narken and ask him if he will do it.  Cheesy

Decagrog
Sr. Member
****
Offline Offline

Activity: 289
Merit: 251



View Profile
May 26, 2013, 05:13:56 AM
 #4

I'm on your same boat, we could put down a list explaining what to put in each parameter, I've seen that some info can be founded in the altcoin main.cpp
Especially INDENTIFIER and PREFIX, what those are?

Pages: [1]
  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!