Skip to content

Commit 3698feb

Browse files
committed
An entry in chainparams for testnet4 support. The BIP70 name given as testnet4 to correspond with chaininfo value.
1 parent 996fff9 commit 3698feb

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, 0x49, 0x7f, 0xd7, 0xf8, 0x26, 0x95,
145+
0x71, 0x08, 0xf4, 0xa3, 0x0f, 0xd9, 0xce,
146+
0xc3, 0xae, 0xba, 0x79, 0x97, 0x20, 0x84,
147+
0xe9, 0x0e, 0xad, 0x01, 0xea, 0x33, 0x09,
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)