Skip to content

Commit

Permalink
Support testnet4 chain
Browse files Browse the repository at this point in the history
Otherwise, HWI fails with the following error when
used as a external signer for Bitcoin Core 28.0:

    {"error": "hwi.py: error: argument --chain: invalid choice: 'testnet4' (choose from main, test, regtest, signet)", "code": -2}
  • Loading branch information
romanz committed Dec 26, 2024
1 parent 3174515 commit f0796e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hwilib/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Chain(Enum):
TEST = 1 #: Bitcoin Test network
REGTEST = 2 #: Bitcoin Core Regression Test network
SIGNET = 3 #: Bitcoin Signet
TESTNET4 = 4 #: Bitcoin Test network

def __str__(self) -> str:
return str(self.name).lower()
Expand Down

0 comments on commit f0796e4

Please sign in to comment.