Skip to content

Commit

Permalink
Merge pull request #4 from hakonamatata/bugfix/rename-to-firo
Browse files Browse the repository at this point in the history
Trezor: Rename the coin name to FIRO
  • Loading branch information
a-bezrukov authored May 14, 2021
2 parents 2105224 + 04b056f commit 56ae288
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions electrum_dash/coins.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def static_header_offset(cls, height):
raise Exception('Not implemented')


class Zcoin(Coin):
class Firo(Coin):
PRE_MTP_BLOCKS = 117564
PRE_MTP_HEADER_SIZE = 80
MTP_HEADER_SIZE = 180
Expand Down Expand Up @@ -36,5 +36,5 @@ def check_header_size(self, header: bytes):
return False


class ZcoinTestnet(Zcoin):
class FiroTestnet(Firo):
PRE_MTP_BLOCKS = 1
4 changes: 2 additions & 2 deletions electrum_dash/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class BitcoinMainnet(AbstractNet):
'p2wsh': 0x02aa7ed3, # Zpub
}
BIP44_COIN_TYPE = 136
COIN = coins.Zcoin()
COIN = coins.Firo()
XPUB_HEADERS_INV = inv_dict(XPUB_HEADERS)
DIP3_ACTIVATION_HEIGHT = 5000
# DRKV_HEADER = 0x02fe52f8 # drkv
Expand Down Expand Up @@ -146,7 +146,7 @@ class BitcoinTestnet(AbstractNet):
# DRKV_HEADER = 0x3a8061a0 # DRKV
# DRKP_HEADER = 0x3a805837 # DRKP
BIP44_COIN_TYPE = 1
COIN = coins.ZcoinTestnet()
COIN = coins.FiroTestnet()
DIP3_ACTIVATION_HEIGHT = 5000


Expand Down
2 changes: 1 addition & 1 deletion electrum_dash/plugins/trezor/trezor.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def get_client(self, keystore, force_pair=True, *,
return client

def get_coin_name(self):
return "Zcoin Testnet" if constants.net.TESTNET else "Zcoin"
return "Firo Testnet" if constants.net.TESTNET else "Firo"

def initialize_device(self, device_id, wizard, handler):
# Initialization method
Expand Down

0 comments on commit 56ae288

Please sign in to comment.