Skip to content

Commit

Permalink
Preconfig Testnet4 (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
wizz-wallet-dev authored May 29, 2024
1 parent c72dacc commit e99550a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions electrumx/lib/coins.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,36 @@ def warn_old_client_on_tx_broadcast(cls, client_ver):
return False


class BitcoinTestnet4(BitcoinTestnetMixin, AtomicalsCoinMixin, Coin):
NAME = "Bitcoin"
NET = "testnet4"
DESERIALIZER = lib_tx.DeserializerSegWit
CRASH_CLIENT_VER = (3, 2, 3)
PEERS = [
]
GENESIS_HASH = ('00000000da84f2bafbbc53dee25a72ae'
'507ff4914b867c565be350b0da8bf043')
RPC_PORT = 48332

ATOMICALS_ACTIVATION_HEIGHT = 27000
ATOMICALS_ACTIVATION_HEIGHT_DMINT = 27000
ATOMICALS_ACTIVATION_HEIGHT_COMMITZ = 27000
ATOMICALS_ACTIVATION_HEIGHT_DENSITY = 27000
ATOMICALS_ACTIVATION_HEIGHT_DFT_BITWORK_ROLLOVER = 27000
ATOMICALS_ACTIVATION_HEIGHT_CUSTOM_COLORING = 27000

@classmethod
def warn_old_client_on_tx_broadcast(cls, client_ver):
if client_ver < (3, 3, 3):
return ('<br/><br/>'
'Your transaction was successfully broadcast.<br/><br/>'
'However, you are using a VULNERABLE version of Electrum.<br/>'
'Download the new version from the usual place:<br/>'
'https://electrum.org/'
'<br/><br/>')
return False


class BitcoinSegwitTestnet(BitcoinTestnet):
NAME = "BitcoinSegwit" # support legacy name

Expand Down

0 comments on commit e99550a

Please sign in to comment.