From 14cd090a24434b4672d2778b2b913f6fb8d39ab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Tim=C3=B3n?= Date: Thu, 3 Oct 2019 21:47:13 +0200 Subject: [PATCH] chainparams: Hardcode 2 new custom regtests with regtest, now there's 3 regtest-like in total only using bitcoind with elements, liquid-regtest gets it up to 4 --- bitcoin/chainparams.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/bitcoin/chainparams.c b/bitcoin/chainparams.c index 6147524d3adf..055f1a4f2ca1 100644 --- a/bitcoin/chainparams.c +++ b/bitcoin/chainparams.c @@ -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",