Skip to content

Commit

Permalink
added LKY Luckycoin
Browse files Browse the repository at this point in the history
  • Loading branch information
Rav3nPL committed Jan 3, 2014
1 parent 76f961a commit dcb169b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
20 changes: 20 additions & 0 deletions p2pool/bitcoin/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,26 @@
DUMB_SCRYPT_DIFF=2**16,
DUST_THRESHOLD=0.03e8,
),
luckycoin=math.Object(
P2P_PREFIX='fbc0b6db'.decode('hex'),
P2P_PORT=9917,
ADDRESS_VERSION=47,
RPC_PORT=9918,
RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
'luckycoinaddress' in (yield bitcoind.rpc_help()) and
not (yield bitcoind.rpc_getinfo())['testnet']
)),
SUBSIDY_FUNC=lambda height: 88*100000000 >> (height + 1)//1036800,
POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
BLOCK_PERIOD=60,
SYMBOL='LKY',
CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Luckycoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Luckycoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.luckycoin'), 'luckycoin.conf'),
BLOCK_EXPLORER_URL_PREFIX='http://d.evco.in/abe/block/',
ADDRESS_EXPLORER_URL_PREFIX='http://d.evco.in/abe/address/',
SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
DUMB_SCRYPT_DIFF=2**16,
),


)
for net_name, net in nets.iteritems():
Expand Down
19 changes: 18 additions & 1 deletion p2pool/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,24 @@
ANNOUNCE_CHANNEL='#p2pool-alt',
VERSION_CHECK=lambda v: True,
),

luckycoin=math.Object(
PARENT=networks.nets['luckycoin'],
SHARE_PERIOD=10,
CHAIN_LENGTH=12*60*60//10,
REAL_CHAIN_LENGTH=12*60*60//10,
TARGET_LOOKBEHIND=20,
SPREAD=50,
IDENTIFIER='cdbb6c0fbc0b6dcb'.decode('hex'),
PREFIX='bbcd0f0f6d6dbcbc'.decode('hex'),
P2P_PORT=8817,
MIN_TARGET=0,
MAX_TARGET=2**256//2**20 - 1,
PERSIST=False,
WORKER_PORT=9817,
BOOTSTRAP_ADDRS='rav3n.dtdns.net p2pool.gotgeeks.com p2pool.dndns.net solidpool.net'.split(' '),
ANNOUNCE_CHANNEL='#p2pool-alt',
VERSION_CHECK=lambda v: True,
),
)
for net_name, net in nets.iteritems():
net.NAME = net_name
2 changes: 1 addition & 1 deletion web-static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
</div>
</div>
</div>

<div><p>Typical cgminer config for GPU scrypt coin: "cgminer --scrypt -Q 0 -o pool.address:port -u PayoutAddress -p xxx --restOfCgminerOptions"</p></div>
<ul class="nav nav-tabs" id="myTab">
<li class="active"><a href="#stats" data-toggle="tab"><i class="icon-user"></i>&nbsp;Pool stats</a></li>
<li><a href="#shares" data-toggle="tab"><i class="icon-refresh"></i>&nbsp;Share explorer</a></li>
Expand Down

0 comments on commit dcb169b

Please sign in to comment.