Author

Topic: How to modify p2pool code for primecoin (Read 1158 times)

member
Activity: 99
Merit: 20
January 21, 2014, 09:00:34 AM
#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.


sr. member
Activity: 333
Merit: 250
November 28, 2013, 06: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
newbie
Activity: 12
Merit: 0
November 26, 2013, 03: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.
sr. member
Activity: 333
Merit: 250
November 19, 2013, 11:35:32 PM
#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!
Jump to: