From 33449756071a446993a56f88be5f1d41e2eb53c7 Mon Sep 17 00:00:00 2001 From: scgbckbone Date: Sat, 14 Mar 2026 17:13:38 +0100 Subject: [PATCH] regtest inherits chains parameters from testnet (saves flash space) --- shared/chains.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/shared/chains.py b/shared/chains.py index 1a9a7e88..9d538477 100644 --- a/shared/chains.py +++ b/shared/chains.py @@ -353,26 +353,11 @@ class BitcoinTestnet(ChainsBase): b44_cointype = 1 -class BitcoinRegtest(ChainsBase): +class BitcoinRegtest(BitcoinTestnet): ctype = 'XRT' name = 'Bitcoin Regtest' - - slip132 = { - AF_CLASSIC: Slip132Version(0x043587cf, 0x04358394, 't'), - AF_P2WPKH_P2SH: Slip132Version(0x044a5262, 0x044a4e28, 'u'), - AF_P2WPKH: Slip132Version(0x045f1cf6, 0x045f18bc, 'v'), - AF_P2WSH_P2SH: Slip132Version(0x024289ef, 0x024285b5, 'U'), - AF_P2WSH: Slip132Version(0x02575483, 0x02575048, 'V'), - } - bech32_hrp = 'bcrt' - b58_addr = bytes([111]) - b58_script = bytes([196]) - b58_privkey = bytes([239]) - - b44_cointype = 1 - def get_chain(short_name): # lookup object from name: 'BTC' or 'XTN'