changed dump_addrs.py to print addresses from all networks
[p2pool.git] / p2pool / bitcoin / litecoin.py
1 from twisted.internet import defer
2
3 class Mainnet(object):
4     BITCOIN_P2P_PREFIX = 'fbc0b6db'.decode('hex')
5     BITCOIN_P2P_PORT = 9333
6     BITCOIN_ADDRESS_VERSION = 48
7     BITCOIN_RPC_PORT = 9332
8     BITCOIN_RPC_CHECK = staticmethod(defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
9         'litecoinaddress' in (yield bitcoind.rpc_help()) and
10         not (yield bitcoind.rpc_getinfo())['testnet']
11     )))
12     BITCOIN_SUBSIDY_FUNC = staticmethod(lambda height: 50*100000000 >> (height + 1)//840000)
13     BITCOIN_POW_SCRYPT = True;
14     BITCOIN_SYMBOL = 'LTC'
15
16 class Testnet(object):
17     BITCOIN_P2P_PREFIX = 'fcc1b7dc'.decode('hex')
18     BITCOIN_P2P_PORT = 19333
19     BITCOIN_ADDRESS_VERSION = 111
20     BITCOIN_RPC_PORT = 19332
21     BITCOIN_RPC_CHECK = staticmethod(defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
22         'litecoinaddress' in (yield bitcoind.rpc_help()) and
23         (yield bitcoind.rpc_getinfo())['testnet']
24     )))
25     BITCOIN_SUBSIDY_FUNC = staticmethod(lambda height: 50*100000000 >> (height + 1)//840000)
26     BITCOIN_POW_SCRYPT = True;
27     BITCOIN_SYMBOL = 'tLTC'