fix(common): rebrand brhodium to xrhodium

pull/1861/head
Pavol Rusnak 3 years ago
parent faae2cb4bc
commit 7b2825e68e

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

@ -1,8 +1,8 @@
{
"coin_name": "Brhodium",
"coin_shortcut": "XRC",
"coin_label": "Bitcoin Rhodium",
"website": "https://www.bitcoinrh.org",
"coin_label": "xRhodium",
"website": "https://xrhodium.org",
"github": "https://gitlab.com/bitcoinrh/BRhodiumNode",
"maintainer": "baff5b <dvbr3@protonmail.com>",
"curve_name": "secp256k1",
@ -35,7 +35,7 @@
},
"dust_limit": 546,
"blocktime_seconds": 600,
"uri_prefix": "bitcoin-rhodium",
"uri_prefix": "xrhodium",
"min_address_length": 27,
"max_address_length": 34,
"negative_fee": false,

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

@ -112,7 +112,7 @@ def check_key(key, types, optional=False, **kwargs):
BTC_CHECKS = [
check_key("coin_name", str, regex=r"^[A-Z]"),
check_key("coin_shortcut", str, regex=r"^t?[A-Z]{3,}$"),
check_key("coin_label", str, regex=r"^[A-Z]"),
check_key("coin_label", str, regex=r"^x?[A-Z]"),
check_key("website", str, regex=r"^https://.*[^/]$"),
check_key("github", str, regex=r"^https://git(hu|la)b.com/.*[^/]$"),
check_key("maintainer", str),

@ -444,35 +444,6 @@ def by_name(name: str) -> CoinInfo:
overwintered=False,
confidential_assets=None,
)
elif name == "Brhodium":
return CoinInfo(
coin_name=name,
coin_shortcut="XRC",
decimals=8,
address_type=61,
address_type_p2sh=123,
maxfee_kb=1000000000,
signed_message_header="BitCoin Rhodium Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
xpub_magic_multisig_segwit_p2sh=None,
xpub_magic_multisig_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=10291,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
negative_fee=False,
curve_name='secp256k1',
extra_data=False,
timestamp=False,
overwintered=False,
confidential_assets=None,
)
elif name == "Bitcore":
return CoinInfo(
coin_name=name,
@ -1894,4 +1865,33 @@ def by_name(name: str) -> CoinInfo:
overwintered=True,
confidential_assets=None,
)
elif name == "Brhodium":
return CoinInfo(
coin_name=name,
coin_shortcut="XRC",
decimals=8,
address_type=61,
address_type_p2sh=123,
maxfee_kb=1000000000,
signed_message_header="BitCoin Rhodium Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
xpub_magic_multisig_segwit_p2sh=None,
xpub_magic_multisig_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=10291,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
negative_fee=False,
curve_name='secp256k1',
extra_data=False,
timestamp=False,
overwintered=False,
confidential_assets=None,
)
raise ValueError # Unknown coin name

Loading…
Cancel
Save