Skip to content

Commit

Permalink
chainparams: Hardcode 2 new custom regtests
Browse files Browse the repository at this point in the history
with regtest, now there's 3 regtest-like in total only using bitcoind
with elements, liquid-regtest gets it up to 4
  • Loading branch information
jtimon committed Dec 18, 2019
1 parent b14b2b0 commit 14cd090
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions bitcoin/chainparams.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,45 @@ const struct chainparams networks[] = {
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_SIGT_PUBLIC, .bip32_privkey_version = BIP32_VER_SIGT_PRIVATE},
.is_elements = false,
},
#if DEVELOPER
{.network_name = "chain_2",
.bip173_name = "bcb",
.bip70_name = "chain_2",
.genesis_blockhash = {{{.u.u8 = {0xc7, 0xad, 0x7a, 0x88, 0x9c, 0x93, 0x12, 0xc3, 0xc5, 0xb9, 0xe1, 0x1f, 0x09, 0x25, 0x8a, 0xfe, 0x27, 0x95, 0xaa, 0x71, 0xeb, 0x21, 0xe4, 0x14, 0x58, 0x52, 0xf1, 0xf8, 0xa4, 0x79, 0x7d, 0xe0}}}},
.rpc_port = 18555,
.cli = "bitcoin-cli",
.cli_args = "-chain=chain_2",
.cli_min_supported_version = 150000,
.dust_limit = { 546 },
.max_funding = AMOUNT_SAT_INIT((1 << 24) - 1),
.max_payment = AMOUNT_MSAT_INIT(0xFFFFFFFFULL),
.when_lightning_became_cool = 1,
.p2pkh_version = 111,
.p2sh_version = 196,
.testnet = true,
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_TEST_PUBLIC, .bip32_privkey_version = BIP32_VER_TEST_PRIVATE},
.is_elements = false,
},
/* You don't need this chain to demonstrate your use case, once in chain_2, going back to regtest counts as an extra "chain jump" */
{.network_name = "chain_3",
.bip173_name = "bcc",
.bip70_name = "chain_3",
.genesis_blockhash = {{{.u.u8 = {0xb9, 0x12, 0x34, 0xe2, 0x52, 0x54, 0x0d, 0x2a, 0x6b, 0x5e, 0xf9, 0x17, 0x36, 0x4d, 0x42, 0xe9, 0xa4, 0x3d, 0xcc, 0x30, 0xe5, 0x9e, 0xbd, 0xf3, 0x1d, 0x54, 0x6a, 0xb9, 0x13, 0x02, 0x65, 0xde}}}},
.rpc_port = 18565,
.cli = "bitcoin-cli",
.cli_args = "-chain=chain_3",
.cli_min_supported_version = 150000,
.dust_limit = { 546 },
.max_funding = AMOUNT_SAT_INIT((1 << 24) - 1),
.max_payment = AMOUNT_MSAT_INIT(0xFFFFFFFFULL),
.when_lightning_became_cool = 1,
.p2pkh_version = 111,
.p2sh_version = 196,
.testnet = true,
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_TEST_PUBLIC, .bip32_privkey_version = BIP32_VER_TEST_PRIVATE},
.is_elements = false,
},
#endif
{.network_name = "testnet",
.bip173_name = "tb",
.bip70_name = "test",
Expand Down

0 comments on commit 14cd090

Please sign in to comment.