From db137379fea3fbad77373fcbfabd13c4491ea10f Mon Sep 17 00:00:00 2001 From: jacob019 Date: Sat, 26 Apr 2014 01:44:54 -0400 Subject: [PATCH 1/3] Update networks.py add kimocoin --- p2pool/networks.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/p2pool/networks.py b/p2pool/networks.py index 2bcf0d14..0d86607d 100644 --- a/p2pool/networks.py +++ b/p2pool/networks.py @@ -180,7 +180,26 @@ ANNOUNCE_CHANNEL='#p2pool-spa', VERSION_CHECK=lambda v: True, VERSION_WARNING=lambda v: 'Upgrade Spaincoin to >=0.8.8.0!' if v < 80800 else None, - ), + ), + + kimocoin=math.Object( + PARENT=networks.nets['kimocoin'], + SHARE_PERIOD=10, # seconds + CHAIN_LENGTH=24*60*60//30, # shares + REAL_CHAIN_LENGTH=24*60*60//30, # shares + TARGET_LOOKBEHIND=200, # shares + SPREAD=15, # blocks + IDENTIFIER='f8d4d7035c692d35'.decode('hex'), + PREFIX='de83d31b55d8fd0e'.decode('hex'), + P2P_PORT=2890, + MIN_TARGET=0, + MAX_TARGET=2**256//2**20 - 1, + PERSIST=True, + WORKER_PORT=2891, + BOOTSTRAP_ADDRS='kmc.1js.us'.split(' '), + ANNOUNCE_CHANNEL='#p2pool-alt', + VERSION_CHECK=lambda v: True, + ), ) for net_name, net in nets.iteritems(): From 737d473d7ca6880df17dbb6849a5f30795e2355f Mon Sep 17 00:00:00 2001 From: jacob019 Date: Sat, 26 Apr 2014 03:08:23 -0400 Subject: [PATCH 2/3] Update networks.py add kimocoin --- p2pool/bitcoin/networks.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/p2pool/bitcoin/networks.py b/p2pool/bitcoin/networks.py index 55476170..92417350 100644 --- a/p2pool/bitcoin/networks.py +++ b/p2pool/bitcoin/networks.py @@ -246,6 +246,28 @@ def check_genesis_block(bitcoind, genesis_block_hash): DUST_THRESHOLD=0.03e8, ), + kimocoin=math.Object( + P2P_PREFIX='6b696d6f'.decode('hex'), + P2P_PORT=1889, + ADDRESS_VERSION=46, + RPC_PORT=1988, + RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( + 'kimocoinaddress' in (yield bitcoind.rpc_help()) and + not (yield bitcoind.rpc_getinfo())['testnet'] + )), + SUBSIDY_FUNC=lambda h: int(h+1 if h < 100e3 else 100e3-((h-99999)//10e3)*10e3 if h < 150e3 else 50e3-((h+1)-150e3) if h < 195e3 else 5e3)*100000000, + POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('vtc_scrypt').getPoWHash(data)), + BLOCK_PERIOD=60, # s + SYMBOL='KMC', + CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'kimocoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/kimocoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.kimocoin'), 'kimocoin.conf'), + BLOCK_EXPLORER_URL_PREFIX='http://explorer.kimocoin.com/block/', + ADDRESS_EXPLORER_URL_PREFIX='http://explorer.kimocoin.com/address/', + TX_EXPLORER_URL_PREFIX='http://explorer.kimocoin.com/tx/', + SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1), + DUMB_SCRYPT_DIFF=2**16, + DUST_THRESHOLD=0.03e8, + ), + ) for net_name, net in nets.iteritems(): net.NAME = net_name From 9064e8ed20476c3dfdb75a80e0c56668310b9e14 Mon Sep 17 00:00:00 2001 From: jacob019 Date: Sat, 26 Apr 2014 03:11:45 -0400 Subject: [PATCH 3/3] Update README.md add Kimocoin --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 60969868..5f4b7cab 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ P2Pool Server Node software for Scrypt-N coins. Currently supported: * TenfiveCoin [10-5] * Spaincoin [SPA] * Rotocoin [RT2] +* Kimocoin [KMC] Requirements: @@ -119,6 +120,10 @@ Spaincoin: * Run P2Pool with the "--net spaincoin" option. * Run your miner program, connecting to 127.0.0.1 on port 26490. +Kimocoin: +* Run P2Pool with the "--net kimocoin" option. +* Run your miner program, connecting to 127.0.0.1 on port 2891. + Sponsors: -------------------------