1 from twisted.internet import defer
4 BITCOIN_P2P_PREFIX = 'f9beb4d9'.decode('hex')
5 BITCOIN_P2P_PORT = 8337
6 BITCOIN_ADDRESS_VERSION = 138
7 BITCOIN_RPC_PORT = 8338
8 BITCOIN_RPC_CHECK = staticmethod(defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
9 'name_firstupdate' not in (yield bitcoind.rpc_help()) and
10 'ixcoinaddress' in (yield bitcoind.rpc_help()) and
11 not (yield bitcoind.rpc_getinfo())['testnet']
13 BITCOIN_SUBSIDY_FUNC = staticmethod(lambda height: 96*100000000 >> (height + 1)//210000)
14 BITCOIN_SYMBOL = 'IXC'
16 class Testnet(object):
17 BITCOIN_P2P_PREFIX = 'fabfb5da'.decode('hex')
18 BITCOIN_P2P_PORT = 18337
19 BITCOIN_ADDRESS_VERSION = 111
20 BITCOIN_RPC_PORT = 8338
21 BITCOIN_RPC_CHECK = staticmethod(defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
22 'name_firstupdate' not in (yield bitcoind.rpc_help()) and
23 'ixcoinaddress' in (yield bitcoind.rpc_help()) and
24 (yield bitcoind.rpc_getinfo())['testnet']
26 BITCOIN_SUBSIDY_FUNC = staticmethod(lambda height: 96*100000000 >> (height + 1)//210000)
27 BITCOIN_SYMBOL = 'tIXC'