Update coin names
Rename BitcoinCash to BitcoinSV A few releases later BitcoinCashABC will be renamed BitcoinCash, but not now to avoid an abrupt change in meaning
This commit is contained in:
parent
f815df67d0
commit
d48ad6cbaa
@ -29,10 +29,10 @@ Supported Coins
|
|||||||
|
|
||||||
- Argentum - ARG
|
- Argentum - ARG
|
||||||
- Bitbay - BAY
|
- Bitbay - BAY
|
||||||
- Bitcoin - BTC
|
|
||||||
- Bitcoin Cash - BCH
|
- Bitcoin Cash - BCH
|
||||||
- Bitcoin Cash ABC - BCHABC
|
|
||||||
- Bitcoin Gold - BTG
|
- Bitcoin Gold - BTG
|
||||||
|
- Bitcoin Segwit - BTC
|
||||||
|
- Bitcoin SV - BSV
|
||||||
- BitcoinAtom - BCA
|
- BitcoinAtom - BCA
|
||||||
- BitcoinGreen - BITG
|
- BitcoinGreen - BITG
|
||||||
- BitcoinPlus - XBC
|
- BitcoinPlus - XBC
|
||||||
|
|||||||
@ -366,9 +366,9 @@ class HOdlcoin(Coin):
|
|||||||
TX_PER_BLOCK = 5
|
TX_PER_BLOCK = 5
|
||||||
|
|
||||||
|
|
||||||
class BitcoinCash(BitcoinMixin, Coin):
|
class BitcoinSV(BitcoinMixin, Coin):
|
||||||
NAME = "BitcoinCash"
|
NAME = "BitcoinSV"
|
||||||
SHORTNAME = "BCH"
|
SHORTNAME = "BSV"
|
||||||
TX_COUNT = 267318795
|
TX_COUNT = 267318795
|
||||||
TX_COUNT_HEIGHT = 557037
|
TX_COUNT_HEIGHT = 557037
|
||||||
TX_PER_BLOCK = 400
|
TX_PER_BLOCK = 400
|
||||||
@ -380,8 +380,8 @@ class BitcoinCash(BitcoinMixin, Coin):
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
class BitcoinCashABC(BitcoinMixin, Coin):
|
class BitcoinCash(BitcoinMixin, Coin):
|
||||||
NAME = "BitcoinCashABC"
|
NAME = "BitcoinCashABC" # Some releases later remove the ABC suffix
|
||||||
SHORTNAME = "BCH"
|
SHORTNAME = "BCH"
|
||||||
TX_COUNT = 265479628
|
TX_COUNT = 265479628
|
||||||
TX_COUNT_HEIGHT = 556592
|
TX_COUNT_HEIGHT = 556592
|
||||||
@ -548,18 +548,15 @@ class BitcoinTestnetMixin(object):
|
|||||||
PEER_DEFAULT_PORTS = {'t': '51001', 's': '51002'}
|
PEER_DEFAULT_PORTS = {'t': '51001', 's': '51002'}
|
||||||
|
|
||||||
|
|
||||||
class BitcoinCashTestnet(BitcoinTestnetMixin, Coin):
|
class BitcoinSVTestnet(BitcoinTestnetMixin, Coin):
|
||||||
'''Bitcoin Testnet for Bitcoin Cash daemons.'''
|
'''Bitcoin Testnet for Bitcoin SV daemons.'''
|
||||||
NAME = "BitcoinCash"
|
NAME = "BitcoinSV"
|
||||||
PEERS = [
|
PEERS = [
|
||||||
'electrum-testnet-abc.criptolayer.net s50112',
|
'electrontest.cascharia.com t51001 s51002',
|
||||||
'bchtestnet.arihanc.com t53001 s53002',
|
|
||||||
'ciiattqkgzebpp6jofjbrkhvhwmgnsfoayljdcrve2p3qmkbv3duaoyd.onion '
|
|
||||||
't53001 s53002',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
class BitcoinCashRegtest(BitcoinCashTestnet):
|
class BitcoinSVRegtest(BitcoinSVTestnet):
|
||||||
NET = "regtest"
|
NET = "regtest"
|
||||||
GENESIS_HASH = ('0f9188f13cb7b2c71f2a335e3a4fc328'
|
GENESIS_HASH = ('0f9188f13cb7b2c71f2a335e3a4fc328'
|
||||||
'bf5beb436012afca590b1a11466e2206')
|
'bf5beb436012afca590b1a11466e2206')
|
||||||
@ -666,8 +663,8 @@ class LitecoinRegtest(LitecoinTestnet):
|
|||||||
TX_COUNT_HEIGHT = 1
|
TX_COUNT_HEIGHT = 1
|
||||||
|
|
||||||
|
|
||||||
class BitcoinCashABCRegtest(BitcoinTestnetMixin, Coin):
|
class BitcoinCashRegtest(BitcoinTestnetMixin, Coin):
|
||||||
NAME = "BitcoinCashABC"
|
NAME = "BitcoinCashABC" # Some releases later remove the ABC suffix
|
||||||
NET = "regtest"
|
NET = "regtest"
|
||||||
PEERS = []
|
PEERS = []
|
||||||
GENESIS_HASH = ('0f9188f13cb7b2c71f2a335e3a4fc328'
|
GENESIS_HASH = ('0f9188f13cb7b2c71f2a335e3a4fc328'
|
||||||
|
|||||||
@ -113,7 +113,7 @@ async def run_test(db_dir):
|
|||||||
environ.clear()
|
environ.clear()
|
||||||
environ['DB_DIRECTORY'] = db_dir
|
environ['DB_DIRECTORY'] = db_dir
|
||||||
environ['DAEMON_URL'] = ''
|
environ['DAEMON_URL'] = ''
|
||||||
environ['COIN'] = 'BitcoinCash'
|
environ['COIN'] = 'BitcoinSV'
|
||||||
db = DB(Env())
|
db = DB(Env())
|
||||||
await db.open_for_serving()
|
await db.open_for_serving()
|
||||||
history = db.history
|
history = db.history
|
||||||
|
|||||||
@ -16,7 +16,7 @@ BASE_DB_DIR = '/some/dir'
|
|||||||
base_environ = {
|
base_environ = {
|
||||||
'DB_DIRECTORY': BASE_DB_DIR,
|
'DB_DIRECTORY': BASE_DB_DIR,
|
||||||
'DAEMON_URL': BASE_DAEMON_URL,
|
'DAEMON_URL': BASE_DAEMON_URL,
|
||||||
'COIN': 'BitcoinCash',
|
'COIN': 'BitcoinSV',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -88,13 +88,13 @@ def test_COIN_NET():
|
|||||||
'''Test COIN and NET defaults and redirection.'''
|
'''Test COIN and NET defaults and redirection.'''
|
||||||
setup_base_env()
|
setup_base_env()
|
||||||
e = Env()
|
e = Env()
|
||||||
assert e.coin == lib_coins.BitcoinCash
|
assert e.coin == lib_coins.BitcoinSV
|
||||||
os.environ['NET'] = 'testnet'
|
os.environ['NET'] = 'testnet'
|
||||||
e = Env()
|
e = Env()
|
||||||
assert e.coin == lib_coins.BitcoinCashTestnet
|
assert e.coin == lib_coins.BitcoinSVTestnet
|
||||||
os.environ['NET'] = ' testnet '
|
os.environ['NET'] = ' testnet '
|
||||||
e = Env()
|
e = Env()
|
||||||
assert e.coin == lib_coins.BitcoinCashTestnet
|
assert e.coin == lib_coins.BitcoinSVTestnet
|
||||||
os.environ.pop('NET')
|
os.environ.pop('NET')
|
||||||
os.environ['COIN'] = ' Litecoin '
|
os.environ['COIN'] = ' Litecoin '
|
||||||
e = Env()
|
e = Env()
|
||||||
@ -169,7 +169,7 @@ def test_RPC_HOST():
|
|||||||
|
|
||||||
def test_REORG_LIMIT():
|
def test_REORG_LIMIT():
|
||||||
assert_integer('REORG_LIMIT', 'reorg_limit',
|
assert_integer('REORG_LIMIT', 'reorg_limit',
|
||||||
lib_coins.BitcoinCash.REORG_LIMIT)
|
lib_coins.BitcoinSV.REORG_LIMIT)
|
||||||
|
|
||||||
|
|
||||||
def test_TCP_PORT():
|
def test_TCP_PORT():
|
||||||
@ -416,5 +416,5 @@ def test_ban_versions():
|
|||||||
|
|
||||||
|
|
||||||
def test_coin_class_provided():
|
def test_coin_class_provided():
|
||||||
e = Env(lib_coins.BitcoinCash)
|
e = Env(lib_coins.BitcoinSV)
|
||||||
assert e.coin == lib_coins.BitcoinCash
|
assert e.coin == lib_coins.BitcoinSV
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user