Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Correct namecoin default config filename and RPC port
  • Loading branch information
Miner committed Jun 21, 2014
1 parent 237e923 commit 07ce093
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions p2pool/bitcoin/networks.py
Expand Up @@ -63,7 +63,7 @@ def check_genesis_block(bitcoind, genesis_block_hash):
P2P_PREFIX='f9beb4fe'.decode('hex'),
P2P_PORT=8334,
ADDRESS_VERSION=52,
RPC_PORT=8332,
RPC_PORT=8336,
RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
'namecoinaddress' in (yield bitcoind.rpc_help()) and
not (yield bitcoind.rpc_getinfo())['testnet']
Expand All @@ -72,7 +72,7 @@ def check_genesis_block(bitcoind, genesis_block_hash):
POW_FUNC=data.hash256,
BLOCK_PERIOD=600, # s
SYMBOL='NMC',
CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Namecoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Namecoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.namecoin'), 'bitcoin.conf'),
CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Namecoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Namecoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.namecoin'), 'namecoin.conf'),
BLOCK_EXPLORER_URL_PREFIX='http://explorer.dot-bit.org/b/',
ADDRESS_EXPLORER_URL_PREFIX='http://explorer.dot-bit.org/a/',
TX_EXPLORER_URL_PREFIX='http://explorer.dot-bit.org/tx/',
Expand All @@ -84,7 +84,7 @@ def check_genesis_block(bitcoind, genesis_block_hash):
P2P_PREFIX='fabfb5fe'.decode('hex'),
P2P_PORT=18334,
ADDRESS_VERSION=111,
RPC_PORT=8332,
RPC_PORT=18336,
RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
'namecoinaddress' in (yield bitcoind.rpc_help()) and
(yield bitcoind.rpc_getinfo())['testnet']
Expand All @@ -93,7 +93,7 @@ def check_genesis_block(bitcoind, genesis_block_hash):
POW_FUNC=data.hash256,
BLOCK_PERIOD=600, # s
SYMBOL='tNMC',
CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Namecoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Namecoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.namecoin'), 'bitcoin.conf'),
CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Namecoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Namecoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.namecoin'), 'namecoin.conf'),
BLOCK_EXPLORER_URL_PREFIX='http://testnet.explorer.dot-bit.org/b/',
ADDRESS_EXPLORER_URL_PREFIX='http://testnet.explorer.dot-bit.org/a/',
TX_EXPLORER_URL_PREFIX='http://testnet.explorer.dot-bit.org/tx/',
Expand Down

0 comments on commit 07ce093

Please sign in to comment.