Bitcoin Forum
May 21, 2024, 11:58:01 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to modify p2pool code for primecoin  (Read 1153 times)
helloword2013 (OP)
Sr. Member
****
Offline Offline

Activity: 333
Merit: 250


View Profile
November 20, 2013, 04:35:32 AM
 #1

I want to change p2pool for primecoin
As far as I know is to add follow to /p2pool/nework.py:
primecoin=math.Object(
        PARENT=networks.nets['primecoin'],
        SHARE_PERIOD=60, # seconds target spacing
        CHAIN_LENGTH=24*60*60//10, # shares
        REAL_CHAIN_LENGTH=24*60*60//10, # shares
        TARGET_LOOKBEHIND=70, # shares coinbase maturity
        SPREAD=120, # blocks
        IDENTIFIER='f143F5b8c6924210'.decode('hex'),
        PREFIX='c387192ba6d4729a'.decode('hex'),
        P2P_PORT=10086,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=10087,
        BOOTSTRAP_ADDRS='chncoin.no-ip.biz'.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-alt',
        VERSION_CHECK=lambda v: True,
    ),
But it is no success,
who can tell me why ,or need to modify other files?
thanks for your apply!
DrYak
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
November 26, 2013, 08:39:57 PM
 #2

Primecoin use a different type of work, they compute prime numbers (instead of computing SHA256^2 hashes like regular bitcoin).

To use them, p2pool would in addition a plug-in that enables it to compute the primes (just like adding support for litecoin to p2pool required adding a library to enable it to compute Scrypt hashes).

As far as I've searched, there aren't currently any such plugin written for P2Pool (and myself, I lack the python skills needed to write it, I only program in C/C++).

But don't despair, as XPM rises in popularity, someone with the correct skill set will eventually step-in and write the necessary plugin.
helloword2013 (OP)
Sr. Member
****
Offline Offline

Activity: 333
Merit: 250


View Profile
November 28, 2013, 11:38:45 AM
 #3

Primecoin use a different type of work, they compute prime numbers (instead of computing SHA256^2 hashes like regular bitcoin).

To use them, p2pool would in addition a plug-in that enables it to compute the primes (just like adding support for litecoin to p2pool required adding a library to enable it to compute Scrypt hashes).

As far as I've searched, there aren't currently any such plugin written for P2Pool (and myself, I lack the python skills needed to write it, I only program in C/C++).

But don't despair, as XPM rises in popularity, someone with the correct skill set will eventually step-in and write the necessary plugin.
thank you
xenoky
Member
**
Offline Offline

Activity: 99
Merit: 20


View Profile
January 21, 2014, 02:00:34 PM
 #4

any news on p2pool software patch for primecoin?

i googled but i cannot find anything
i look in the code https://github.com/Rav3nPL/p2pool-rav
and i see the litecoin patch under the dir litecoin-scrypt, i suppose that primecoin need the same for prime algo but i am not able to write the code, maybe with some help.


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!