Skip to content

Commit 1b58069

Browse files
2seaqcdecker
authored andcommitted
An entry in chainparams for testnet4 support. The BIP70 name given as testnet4 to correspond with chaininfo value.
1 parent cc07f9a commit 1b58069

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

bitcoin/chainparams.c

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,31 @@ const struct chainparams networks[] = {
137137
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_TEST_PUBLIC,
138138
.bip32_privkey_version = BIP32_VER_TEST_PRIVATE},
139139
.is_elements = false},
140+
{.network_name = "testnet4",
141+
.onchain_hrp = "tb",
142+
.lightning_hrp = "tb",
143+
.bip70_name = "testnet4",
144+
.genesis_blockhash = {{{.u.u8 = {0x43, 0xf0, 0x8b, 0xda, 0xb0, 0x50, 0xe3,
145+
0x5b, 0x56, 0x7c, 0x86, 0x4b, 0x91, 0xf4,
146+
0x7f, 0x50, 0xae, 0x72, 0x5a, 0xe2, 0xde,
147+
0x53, 0xbc, 0xfb, 0xba, 0xf2, 0x84, 0xda,
148+
0x00, 0x00, 0x00, 0x00}}}},
149+
.rpc_port = 18332,
150+
.ln_port = 19735,
151+
.cli = "bitcoin-cli",
152+
.cli_args = "-testnet4",
153+
.cli_min_supported_version = 150000,
154+
.dust_limit = { 546 },
155+
.max_funding = AMOUNT_SAT_INIT((1 << 24) - 1),
156+
.max_payment = AMOUNT_MSAT_INIT(0xFFFFFFFFULL),
157+
.max_supply = AMOUNT_SAT_INIT(2100000000000000),
158+
.p2pkh_version = 111,
159+
.p2sh_version = 196,
160+
.testnet = true,
161+
.fee_asset_tag = NULL,
162+
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_TEST_PUBLIC,
163+
.bip32_privkey_version = BIP32_VER_TEST_PRIVATE},
164+
.is_elements = false},
140165
{.network_name = "litecoin",
141166
.onchain_hrp = "ltc",
142167
.lightning_hrp = "ltc",

0 commit comments

Comments
 (0)