Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: Jude Austin on August 04, 2013, 04:50:59 AM



Title: Krugercoin P2Pool Source Needed
Post by: Jude Austin on August 04, 2013, 04:50:59 AM
Hello.

I would like to add Krugercoin to P2Pool.org.

If you know the values or perhaps where I could get the source that would be great!

Thank you!


Title: Re: Krugercoin P2Pool Source Needed
Post by: Jude Austin on August 04, 2013, 07:18:26 PM
I will give a 1000 Krugercoin bounty for a working P2Pool instance of Krugercoin.

Thank you.


Title: Re: Krugercoin P2Pool Source Needed
Post by: matosha on February 24, 2014, 06:08:15 PM
Did you manage to get this right?
Now im struggling to get all the values... Im stuck on p2p connecton part... just sits their loading forever.

Got it right. But im using it solo.
in network.py
Quote
krugercoin=math.Object(
        PARENT=networks.nets['krugercoin'],
        SHARE_PERIOD=30, # seconds
        CHAIN_LENGTH=12*60*60//10, # shares
        REAL_CHAIN_LENGTH=12*60*60//10, # shares
        TARGET_LOOKBEHIND=20, # shares
        SPREAD=10, # blocks
        IDENTIFIER='cc6561bb6865ff21'.decode('hex'),
        PREFIX='aa31010baff4729a'.decode('hex'),
        P2P_PORT=9339,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=9357,
        BOOTSTRAP_ADDRS='78.108.105.141 46.72.131.40'.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-alt',
        VERSION_CHECK=lambda v: True,
    ),

and in the bitcoin/network.py
krugercoin=math.Object(
        P2P_PREFIX='fbc0b6db'.decode('hex'),
        P2P_PORT=8771,
        ADDRESS_VERSION=79,
        RPC_PORT=9332,
        RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'krugercoinaddress' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        )),
        SUBSIDY_FUNC=lambda height: 32*100000000 >> (height + 1)//4147200,
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
        BLOCK_PERIOD=150, # s
        SYMBOL='KGC',
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'krugercoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/krugercoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.krugercoin'), 'krugercoin.conf'),
        BLOCK_EXPLORER_URL_PREFIX='http://cryptocoinexplorer.com:5750/block/',
        ADDRESS_EXPLORER_URL_PREFIX='http://cryptocoinexplorer.com:5750/address/',
        TX_EXPLORER_URL_PREFIX='http://cryptocoinexplorer.com:5750/transaction/',
        SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
        DUMB_SCRYPT_DIFF=2**16,
        DUST_THRESHOLD=1e8,
    ),


Title: Re: Krugercoin P2Pool Source Needed
Post by: cr1776 on February 25, 2014, 07:47:16 PM
it does look like it is working, but I have not seen the config for it.