Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/donSchoe/p2pool-n into do…
Browse files Browse the repository at this point in the history
…nSchoe-master

Conflicts:
	p2pool/bitcoin/networks.py
  • Loading branch information
Lovok committed Apr 28, 2014
2 parents f07db3c + e57e3b4 commit c4b2ee5
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -5,6 +5,7 @@ P2Pool Server Node software for Scrypt-N coins. Currently supported:
* TenfiveCoin [10-5]
* Spaincoin [SPA]
* Rotocoin [RT2]
* Kimocoin [KMC]


Requirements:
Expand Down Expand Up @@ -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:
-------------------------
Expand Down
20 changes: 20 additions & 0 deletions p2pool/bitcoin/networks.py
Expand Up @@ -264,6 +264,7 @@ def check_genesis_block(bitcoind, genesis_block_hash):
DUST_THRESHOLD=0.03e8,
),

<<<<<<< HEAD
caishen=math.Object(
P2P_PREFIX='fabfb5da'.decode('hex'),
P2P_PORT=14260,
Expand All @@ -281,6 +282,25 @@ def check_genesis_block(bitcoind, genesis_block_hash):
BLOCK_EXPLORER_URL_PREFIX='http://greekpool.eu:29000/block/',
ADDRESS_EXPLORER_URL_PREFIX='http://greekpool.eu:29000/address/',
TX_EXPLORER_URL_PREFIX='http://greekpool.eu:29000/tx/',
=======
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/',
>>>>>>> e57e3b4e2b56d308241f488ec1afb8d3345998c3
SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
DUMB_SCRYPT_DIFF=2**16,
DUST_THRESHOLD=0.03e8,
Expand Down
21 changes: 20 additions & 1 deletion p2pool/networks.py
Expand Up @@ -199,7 +199,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,
),

caishen=math.Object(
PARENT=networks.nets['caishen'],
Expand Down

0 comments on commit c4b2ee5

Please sign in to comment.