Skip to content

Commit

Permalink
added HIC Hawaiicoin support
Browse files Browse the repository at this point in the history
  • Loading branch information
Rav3nPL committed Apr 16, 2014
1 parent e4027ef commit 38bb557
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
23 changes: 23 additions & 0 deletions p2pool/bitcoin/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,29 @@ def check_genesis_block(bitcoind, genesis_block_hash):
DUMB_SCRYPT_DIFF=2**16, #??
DUST_THRESHOLD=0.03e8, #??
),
hawaiicoin=math.Object(
P2P_PREFIX='7c1f9184'.decode('hex'),
P2P_PORT=9335,
ADDRESS_VERSION=0,
RPC_PORT=9334,
RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
'hawaiicoinaddress' in (yield bitcoind.rpc_help()) and
not (yield bitcoind.rpc_getinfo())['testnet']
)),
SUBSIDY_FUNC=lambda height: 500*100000000 >> (height + 1)//500000,
POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
BLOCK_PERIOD=50, # s
SYMBOL='HIC',
CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Hawaiicoin') if platform.system() == 'Windows'
else os.path.expanduser('~/Library/Application Support/Hawaiicoin/') if platform.system() == 'Darwin'
else os.path.expanduser('~/.hawaiicoin'), 'hawaiicoin.conf'),
BLOCK_EXPLORER_URL_PREFIX='http://explorer.hawaiicoin.net/block/', #dummy
ADDRESS_EXPLORER_URL_PREFIX='http://explorer.hawaii.net/address/',
TX_EXPLORER_URL_PREFIX='http://explorer.hawaiicoin.net/tx/',
SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
DUMB_SCRYPT_DIFF=2**16,
DUST_THRESHOLD=0.03e8,
),


)
Expand Down
18 changes: 18 additions & 0 deletions p2pool/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,24 @@
VERSION_CHECK=lambda v: 10000 <= v,
VERSION_WARNING=lambda v: 'Upgrade FCKbankscoin to >=1.0.0.0!' if v < 10000 else None,
),
hawaiicoin=math.Object(
PARENT=networks.nets['hawaiicoin'],
SHARE_PERIOD=10, # seconds
CHAIN_LENGTH=12*60*60//10, # shares
REAL_CHAIN_LENGTH=12*60*60//10, # shares
TARGET_LOOKBEHIND=20, # shares
SPREAD=30, # blocks
IDENTIFIER='1f7c84911f8491c8'.decode('hex'),
PREFIX='c8c81f1f94949191'.decode('hex'),
P2P_PORT=8934,
MIN_TARGET=0,
MAX_TARGET=2**256//2**20 - 1,
PERSIST=False,
WORKER_PORT=9834,
BOOTSTRAP_ADDRS='p2pool-us.coin-project.org p2pool-eu.coin-project.org p2pool-eu.gotgeeks.com p2pool-us.gotgeeks.com rav3n.dtdns.net doge.dtdns.net pool.hostv.pl p2pool.org p2pool.gotgeeks.com p2pool.dtdns.net solidpool.org taken.pl'.split(' '),
ANNOUNCE_CHANNEL='#p2pool-alt',
VERSION_CHECK=lambda v: True,
),

)
for net_name, net in nets.iteritems():
Expand Down

0 comments on commit 38bb557

Please sign in to comment.