Skip to content

Commit

Permalink
Fit script with testnet4
Browse files Browse the repository at this point in the history
  • Loading branch information
wizz-wallet-dev committed Jun 21, 2024
1 parent 747eb85 commit 8ed01ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions electrumx/lib/script2addr.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def get_net_from_env():
def get_addr_type_p2pkh():
net = get_net_from_env()
value = 0 # mainnet
if net == "testnet":
if net == "testnet" or net == "testnet4":
value = 111
elif net == "regtest":
value = 111
Expand All @@ -256,7 +256,7 @@ def get_addr_type_p2pkh():
def get_addr_type_p2sh():
net = get_net_from_env()
value = 5 # mainnet
if net == "testnet":
if net == "testnet" or net == "testnet4":
value = 196
elif net == "regtest":
value = 196
Expand All @@ -266,7 +266,7 @@ def get_addr_type_p2sh():
def get_segwit_hrp():
net = get_net_from_env()
value = "bc" # mainnet
if net == "testnet":
if net == "testnet" or net == "testnet4":
value = "tb"
elif net == "regtest":
value = "bcrt"
Expand Down

0 comments on commit 8ed01ac

Please sign in to comment.