Skip to content

Commit

Permalink
Swap Bitcoin Network Params for Namecoin Params
Browse files Browse the repository at this point in the history
(Based on an earlier version by ahmedbodi)
  • Loading branch information
JeremyRand committed May 19, 2018
1 parent 4c23439 commit 14db367
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ def read_json(filename, default):
class BitcoinMainnet:

TESTNET = False
WIF_PREFIX = 0x80
ADDRTYPE_P2PKH = 0
ADDRTYPE_P2SH = 5
SEGWIT_HRP = "bc"
GENESIS = "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f"
WIF_PREFIX = 180
ADDRTYPE_P2PKH = 52
ADDRTYPE_P2SH = 13
SEGWIT_HRP = "nc"
GENESIS = "000000000062b72c5e2ceb45fbc8587e807c155b0da735e6483dfba2f0a9c770"
DEFAULT_PORTS = {'t': '50001', 's': '50002'}
DEFAULT_SERVERS = read_json('servers.json', {})
CHECKPOINTS = read_json('checkpoints.json', [])
Expand All @@ -68,11 +68,11 @@ class BitcoinMainnet:
class BitcoinTestnet:

TESTNET = True
WIF_PREFIX = 0xef
WIF_PREFIX = 239
ADDRTYPE_P2PKH = 111
ADDRTYPE_P2SH = 196
SEGWIT_HRP = "tb"
GENESIS = "000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943"
SEGWIT_HRP = "tn"
GENESIS = "00000007199508e34a9ff81e6ec0c477a4cccff2a4767a8eee39c11db367b008"
DEFAULT_PORTS = {'t': '51001', 's': '51002'}
DEFAULT_SERVERS = read_json('servers_testnet.json', {})
CHECKPOINTS = read_json('checkpoints_testnet.json', [])
Expand All @@ -95,7 +95,7 @@ class BitcoinTestnet:

class BitcoinRegtest(BitcoinTestnet):

SEGWIT_HRP = "bcrt"
SEGWIT_HRP = "ncrt"
GENESIS = "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206"
DEFAULT_SERVERS = read_json('servers_regtest.json', {})
CHECKPOINTS = []
Expand Down

0 comments on commit 14db367

Please sign in to comment.