2021-12-04 12:23:56 +01:00
|
|
|
#include "config.h"
|
2022-06-20 23:38:18 +02:00
|
|
|
#include <assert.h>
|
2021-12-04 12:23:56 +01:00
|
|
|
#include <bitcoin/chainparams.h>
|
2017-07-12 13:05:39 +02:00
|
|
|
#include <ccan/array_size/array_size.h>
|
2021-09-16 07:00:42 +02:00
|
|
|
#include <ccan/tal/str/str.h>
|
2019-11-28 15:10:08 +01:00
|
|
|
#include <common/utils.h>
|
2017-07-04 18:51:39 +02:00
|
|
|
|
2019-03-11 20:03:14 +01:00
|
|
|
/* Version codes for BIP32 extended keys in libwally-core.
|
|
|
|
* Stolen from wally_bip32.h in libwally-core*/
|
|
|
|
#define BIP32_VER_MAIN_PUBLIC 0x0488B21E
|
|
|
|
#define BIP32_VER_MAIN_PRIVATE 0x0488ADE4
|
|
|
|
#define BIP32_VER_TEST_PUBLIC 0x043587CF
|
|
|
|
#define BIP32_VER_TEST_PRIVATE 0x04358394
|
2019-07-18 17:14:01 +02:00
|
|
|
#define BIP32_VER_SIGT_PUBLIC 0x043587CF
|
|
|
|
#define BIP32_VER_SIGT_PRIVATE 0x04358394
|
2019-03-11 20:03:14 +01:00
|
|
|
|
2019-07-30 15:23:40 +02:00
|
|
|
static u8 liquid_fee_asset[] = {
|
|
|
|
0x01, 0x6d, 0x52, 0x1c, 0x38, 0xec, 0x1e, 0xa1, 0x57, 0x34, 0xae,
|
|
|
|
0x22, 0xb7, 0xc4, 0x60, 0x64, 0x41, 0x28, 0x29, 0xc0, 0xd0, 0x57,
|
|
|
|
0x9f, 0x0a, 0x71, 0x3d, 0x1c, 0x04, 0xed, 0xe9, 0x79, 0x02, 0x6f,
|
|
|
|
};
|
|
|
|
|
|
|
|
static u8 liquid_regtest_fee_asset[] = {
|
|
|
|
0x01, 0x5c, 0xe7, 0xb9, 0x63, 0xd3, 0x7f, 0x8f, 0x2d, 0x51, 0xca,
|
|
|
|
0xfb, 0xba, 0x92, 0x8a, 0xaa, 0x9e, 0x22, 0x0b, 0x8b, 0xbc, 0x66,
|
|
|
|
0x05, 0x71, 0x49, 0x9c, 0x03, 0x62, 0x8a, 0x38, 0x51, 0xb8, 0xce,
|
|
|
|
};
|
|
|
|
|
2017-07-12 13:05:39 +02:00
|
|
|
const struct chainparams networks[] = {
|
2018-09-08 13:39:46 +02:00
|
|
|
{.network_name = "bitcoin",
|
2021-11-29 08:10:06 +01:00
|
|
|
.onchain_hrp = "bc",
|
|
|
|
.lightning_hrp = "bc",
|
2019-06-30 16:58:52 +02:00
|
|
|
.bip70_name = "main",
|
2019-04-11 17:41:58 +02:00
|
|
|
.genesis_blockhash = {{{.u.u8 = {0x6f, 0xe2, 0x8c, 0x0a, 0xb6, 0xf1, 0xb3,
|
|
|
|
0x72, 0xc1, 0xa6, 0xa2, 0x46, 0xae, 0x63,
|
|
|
|
0xf7, 0x4f, 0x93, 0x1e, 0x83, 0x65, 0xe1,
|
|
|
|
0x5a, 0x08, 0x9c, 0x68, 0xd6, 0x19, 0x00,
|
|
|
|
0x00, 0x00, 0x00, 0x00}}}},
|
2017-07-04 18:51:39 +02:00
|
|
|
.rpc_port = 8332,
|
2022-05-08 18:04:29 +02:00
|
|
|
.ln_port = 9735,
|
2017-07-04 18:51:39 +02:00
|
|
|
.cli = "bitcoin-cli",
|
2017-08-12 15:28:37 +02:00
|
|
|
.cli_args = NULL,
|
2019-07-27 17:20:05 +02:00
|
|
|
.cli_min_supported_version = 150000,
|
2019-02-21 04:45:54 +01:00
|
|
|
.dust_limit = { 546 },
|
2018-09-06 18:52:11 +02:00
|
|
|
/* BOLT #2:
|
|
|
|
*
|
|
|
|
* The sending node:
|
|
|
|
*...
|
|
|
|
* - MUST set `funding_satoshis` to less than 2^24 satoshi.
|
|
|
|
*/
|
2019-02-27 00:35:29 +01:00
|
|
|
.max_funding = AMOUNT_SAT_INIT((1 << 24) - 1),
|
|
|
|
.max_payment = AMOUNT_MSAT_INIT(0xFFFFFFFFULL),
|
2018-02-15 23:09:55 +01:00
|
|
|
/* "Lightning Charge Powers Developers & Blockstream Store" */
|
|
|
|
.when_lightning_became_cool = 504500,
|
2019-04-29 20:09:06 +02:00
|
|
|
.p2pkh_version = 0,
|
|
|
|
.p2sh_version = 5,
|
2019-03-11 20:03:14 +01:00
|
|
|
.testnet = false,
|
2019-07-30 15:23:40 +02:00
|
|
|
.fee_asset_tag = NULL,
|
2019-04-11 17:41:58 +02:00
|
|
|
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_MAIN_PUBLIC,
|
|
|
|
.bip32_privkey_version = BIP32_VER_MAIN_PRIVATE},
|
|
|
|
.is_elements = false},
|
2018-09-08 13:39:46 +02:00
|
|
|
{.network_name = "regtest",
|
2021-11-29 08:10:06 +01:00
|
|
|
.onchain_hrp = "bcrt",
|
|
|
|
.lightning_hrp = "bcrt",
|
2019-06-30 16:58:52 +02:00
|
|
|
.bip70_name = "regtest",
|
2019-04-11 17:41:58 +02:00
|
|
|
.genesis_blockhash = {{{.u.u8 = {0x06, 0x22, 0x6e, 0x46, 0x11, 0x1a, 0x0b,
|
|
|
|
0x59, 0xca, 0xaf, 0x12, 0x60, 0x43, 0xeb,
|
|
|
|
0x5b, 0xbf, 0x28, 0xc3, 0x4f, 0x3a, 0x5e,
|
|
|
|
0x33, 0x2a, 0x1f, 0xc7, 0xb2, 0xb7, 0x3c,
|
|
|
|
0xf1, 0x88, 0x91, 0x0f}}}},
|
2021-11-01 21:17:20 +01:00
|
|
|
.rpc_port = 18443,
|
2022-05-11 22:20:52 +02:00
|
|
|
.ln_port = 19846,
|
2017-07-04 18:51:39 +02:00
|
|
|
.cli = "bitcoin-cli",
|
|
|
|
.cli_args = "-regtest",
|
2019-07-27 17:20:05 +02:00
|
|
|
.cli_min_supported_version = 150000,
|
2019-02-21 04:45:54 +01:00
|
|
|
.dust_limit = { 546 },
|
2019-02-27 00:35:29 +01:00
|
|
|
.max_funding = AMOUNT_SAT_INIT((1 << 24) - 1),
|
|
|
|
.max_payment = AMOUNT_MSAT_INIT(0xFFFFFFFFULL),
|
2018-02-15 23:09:55 +01:00
|
|
|
.when_lightning_became_cool = 1,
|
2019-04-29 20:09:06 +02:00
|
|
|
.p2pkh_version = 111,
|
|
|
|
.p2sh_version = 196,
|
2019-03-11 20:03:14 +01:00
|
|
|
.testnet = true,
|
2019-07-30 15:23:40 +02:00
|
|
|
.fee_asset_tag = NULL,
|
2019-04-11 17:41:58 +02:00
|
|
|
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_TEST_PUBLIC,
|
|
|
|
.bip32_privkey_version = BIP32_VER_TEST_PRIVATE},
|
|
|
|
.is_elements = false},
|
2019-07-18 17:14:01 +02:00
|
|
|
{.network_name = "signet",
|
2021-11-29 08:10:06 +01:00
|
|
|
.onchain_hrp = "tb",
|
|
|
|
.lightning_hrp = "tbs",
|
2019-07-18 17:14:01 +02:00
|
|
|
.bip70_name = "signet",
|
2020-09-19 14:36:45 +02:00
|
|
|
// 00000008819873e925422c1ff0f99f7cc9bbb232af63a077a480a3633bee1ef6
|
|
|
|
.genesis_blockhash = {{{.u.u8 = {0xf6, 0x1e, 0xee, 0x3b, 0x63, 0xa3, 0x80,
|
|
|
|
0xa4, 0x77, 0xa0, 0x63, 0xaf, 0x32, 0xb2,
|
|
|
|
0xbb, 0xc9, 0x7c, 0x9f, 0xf9, 0xf0, 0x1f,
|
|
|
|
0x2c, 0x42, 0x25, 0xe9, 0x73, 0x98, 0x81,
|
|
|
|
0x08, 0x00, 0x00, 0x00}}}},
|
2019-07-18 17:14:01 +02:00
|
|
|
.rpc_port = 38332,
|
2022-05-08 18:04:29 +02:00
|
|
|
.ln_port = 39735,
|
2019-07-18 17:14:01 +02:00
|
|
|
.cli = "bitcoin-cli",
|
|
|
|
.cli_args = "-signet",
|
2019-07-27 17:20:05 +02:00
|
|
|
.cli_min_supported_version = 150000,
|
2019-07-18 17:14:01 +02:00
|
|
|
.dust_limit = { 546 },
|
|
|
|
.max_funding = AMOUNT_SAT_INIT((1 << 24) - 1),
|
|
|
|
.max_payment = AMOUNT_MSAT_INIT(0xFFFFFFFFULL),
|
|
|
|
.when_lightning_became_cool = 1,
|
2020-09-23 03:12:13 +02:00
|
|
|
.p2pkh_version = 111,
|
|
|
|
.p2sh_version = 196,
|
2019-07-18 17:14:01 +02:00
|
|
|
.testnet = true,
|
2019-04-11 17:41:58 +02:00
|
|
|
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_SIGT_PUBLIC, .bip32_privkey_version = BIP32_VER_SIGT_PRIVATE},
|
|
|
|
.is_elements = false,
|
|
|
|
},
|
2018-09-08 13:39:46 +02:00
|
|
|
{.network_name = "testnet",
|
2021-11-29 08:10:06 +01:00
|
|
|
.onchain_hrp = "tb",
|
|
|
|
.lightning_hrp = "tb",
|
2019-06-30 16:58:52 +02:00
|
|
|
.bip70_name = "test",
|
2019-04-11 17:41:58 +02:00
|
|
|
.genesis_blockhash = {{{.u.u8 = {0x43, 0x49, 0x7f, 0xd7, 0xf8, 0x26, 0x95,
|
|
|
|
0x71, 0x08, 0xf4, 0xa3, 0x0f, 0xd9, 0xce,
|
|
|
|
0xc3, 0xae, 0xba, 0x79, 0x97, 0x20, 0x84,
|
|
|
|
0xe9, 0x0e, 0xad, 0x01, 0xea, 0x33, 0x09,
|
|
|
|
0x00, 0x00, 0x00, 0x00}}}},
|
2017-07-04 18:51:39 +02:00
|
|
|
.rpc_port = 18332,
|
2022-05-08 18:04:29 +02:00
|
|
|
.ln_port = 19735,
|
2017-07-04 18:51:39 +02:00
|
|
|
.cli = "bitcoin-cli",
|
|
|
|
.cli_args = "-testnet",
|
2019-07-27 17:20:05 +02:00
|
|
|
.cli_min_supported_version = 150000,
|
2019-02-21 04:45:54 +01:00
|
|
|
.dust_limit = { 546 },
|
2019-02-27 00:35:29 +01:00
|
|
|
.max_funding = AMOUNT_SAT_INIT((1 << 24) - 1),
|
|
|
|
.max_payment = AMOUNT_MSAT_INIT(0xFFFFFFFFULL),
|
2019-04-29 20:09:06 +02:00
|
|
|
.p2pkh_version = 111,
|
|
|
|
.p2sh_version = 196,
|
2019-03-11 20:03:14 +01:00
|
|
|
.testnet = true,
|
2019-07-30 15:23:40 +02:00
|
|
|
.fee_asset_tag = NULL,
|
2019-04-11 17:41:58 +02:00
|
|
|
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_TEST_PUBLIC,
|
|
|
|
.bip32_privkey_version = BIP32_VER_TEST_PRIVATE},
|
|
|
|
.is_elements = false},
|
2018-09-08 13:39:46 +02:00
|
|
|
{.network_name = "litecoin",
|
2021-11-29 08:10:06 +01:00
|
|
|
.onchain_hrp = "ltc",
|
|
|
|
.lightning_hrp = "ltc",
|
2019-06-30 16:58:52 +02:00
|
|
|
.bip70_name = "main",
|
2019-04-11 17:41:58 +02:00
|
|
|
.genesis_blockhash = {{{.u.u8 = {0xe2, 0xbf, 0x04, 0x7e, 0x7e, 0x5a, 0x19,
|
|
|
|
0x1a, 0xa4, 0xef, 0x34, 0xd3, 0x14, 0x97,
|
|
|
|
0x9d, 0xc9, 0x98, 0x6e, 0x0f, 0x19, 0x25,
|
|
|
|
0x1e, 0xda, 0xba, 0x59, 0x40, 0xfd, 0x1f,
|
|
|
|
0xe3, 0x65, 0xa7, 0x12}}}},
|
2018-02-14 11:07:39 +01:00
|
|
|
.rpc_port = 9332,
|
2022-05-08 18:04:29 +02:00
|
|
|
.ln_port = 9735,
|
2017-07-04 18:51:39 +02:00
|
|
|
.cli = "litecoin-cli",
|
2018-02-14 11:07:39 +01:00
|
|
|
.cli_args = NULL,
|
2019-07-27 17:20:05 +02:00
|
|
|
.cli_min_supported_version = 150000,
|
2019-02-21 04:45:54 +01:00
|
|
|
.dust_limit = { 100000 },
|
2019-02-27 00:35:29 +01:00
|
|
|
.max_funding = AMOUNT_SAT_INIT(60 * ((1 << 24) - 1)),
|
|
|
|
.max_payment = AMOUNT_MSAT_INIT(60 * 0xFFFFFFFFULL),
|
2018-04-27 04:12:27 +02:00
|
|
|
.when_lightning_became_cool = 1320000,
|
2019-04-29 20:09:06 +02:00
|
|
|
.p2pkh_version = 48,
|
|
|
|
.p2sh_version = 50,
|
2019-03-11 20:03:14 +01:00
|
|
|
.testnet = false,
|
2019-07-30 15:23:40 +02:00
|
|
|
.fee_asset_tag = NULL,
|
2019-04-11 17:41:58 +02:00
|
|
|
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_MAIN_PUBLIC,
|
|
|
|
.bip32_privkey_version = BIP32_VER_MAIN_PRIVATE},
|
|
|
|
.is_elements = false},
|
2018-09-08 13:39:46 +02:00
|
|
|
{.network_name = "litecoin-testnet",
|
2021-11-29 08:10:06 +01:00
|
|
|
.onchain_hrp = "tltc",
|
|
|
|
.lightning_hrp = "tltc",
|
2019-06-30 16:58:52 +02:00
|
|
|
.bip70_name = "test",
|
2019-04-11 17:41:58 +02:00
|
|
|
.genesis_blockhash = {{{.u.u8 = {0xa0, 0x29, 0x3e, 0x4e, 0xeb, 0x3d, 0xa6,
|
|
|
|
0xe6, 0xf5, 0x6f, 0x81, 0xed, 0x59, 0x5f,
|
|
|
|
0x57, 0x88, 0x0d, 0x1a, 0x21, 0x56, 0x9e,
|
|
|
|
0x13, 0xee, 0xfd, 0xd9, 0x51, 0x28, 0x4b,
|
|
|
|
0x5a, 0x62, 0x66, 0x49}}}},
|
2018-02-14 11:07:39 +01:00
|
|
|
.rpc_port = 19332,
|
2022-05-08 18:04:29 +02:00
|
|
|
.ln_port = 9735,
|
2018-01-22 15:36:54 +01:00
|
|
|
.cli = "litecoin-cli",
|
|
|
|
.cli_args = "-testnet",
|
2019-07-27 17:20:05 +02:00
|
|
|
.cli_min_supported_version = 150000,
|
2019-02-21 04:45:54 +01:00
|
|
|
.dust_limit = { 100000 },
|
2019-02-27 00:35:29 +01:00
|
|
|
.max_funding = AMOUNT_SAT_INIT(60 * ((1 << 24) - 1)),
|
|
|
|
.max_payment = AMOUNT_MSAT_INIT(60 * 0xFFFFFFFFULL),
|
2018-02-15 23:09:55 +01:00
|
|
|
.when_lightning_became_cool = 1,
|
2019-04-29 20:09:06 +02:00
|
|
|
.p2pkh_version = 111,
|
|
|
|
.p2sh_version = 58,
|
2019-03-11 20:03:14 +01:00
|
|
|
.testnet = true,
|
2019-07-30 15:23:40 +02:00
|
|
|
.fee_asset_tag = NULL,
|
2019-04-11 17:41:58 +02:00
|
|
|
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_TEST_PUBLIC,
|
|
|
|
.bip32_privkey_version = BIP32_VER_TEST_PRIVATE},
|
|
|
|
.is_elements = false},
|
|
|
|
{.network_name = "liquid-regtest",
|
2021-11-29 08:10:06 +01:00
|
|
|
.onchain_hrp = "ert",
|
|
|
|
.lightning_hrp = "ert",
|
2019-07-30 15:23:40 +02:00
|
|
|
.bip70_name = "liquid-regtest",
|
2019-04-11 17:41:58 +02:00
|
|
|
.genesis_blockhash = {{{.u.u8 = {0x9f, 0x87, 0xeb, 0x58, 0x0b, 0x9e, 0x5f,
|
|
|
|
0x11, 0xdc, 0x21, 0x1e, 0x9f, 0xb6, 0x6a,
|
|
|
|
0xbb, 0x36, 0x99, 0x99, 0x90, 0x44, 0xf8,
|
|
|
|
0xfe, 0x14, 0x68, 0x01, 0x16, 0x23, 0x93,
|
|
|
|
0x36, 0x42, 0x86, 0xc6}}}},
|
|
|
|
.rpc_port = 19332,
|
2022-05-11 22:20:52 +02:00
|
|
|
.ln_port = 20735,
|
2019-04-11 17:41:58 +02:00
|
|
|
.cli = "elements-cli",
|
|
|
|
.cli_args = "-chain=liquid-regtest",
|
|
|
|
.dust_limit = {546},
|
|
|
|
.max_funding = AMOUNT_SAT_INIT((1 << 24) - 1),
|
|
|
|
.max_payment = AMOUNT_MSAT_INIT(0xFFFFFFFFULL),
|
|
|
|
.when_lightning_became_cool = 1,
|
2019-05-06 20:50:11 +02:00
|
|
|
.p2pkh_version = 91,
|
|
|
|
.p2sh_version = 75,
|
2019-04-11 17:41:58 +02:00
|
|
|
.testnet = true,
|
2019-07-30 15:23:40 +02:00
|
|
|
.fee_asset_tag = liquid_regtest_fee_asset,
|
2019-04-11 17:41:58 +02:00
|
|
|
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_TEST_PUBLIC,
|
|
|
|
.bip32_privkey_version = BIP32_VER_TEST_PRIVATE},
|
|
|
|
.is_elements = true},
|
2019-06-29 18:49:41 +02:00
|
|
|
{.network_name = "liquid",
|
2021-11-29 08:10:06 +01:00
|
|
|
.onchain_hrp = "ex",
|
|
|
|
.lightning_hrp = "ex",
|
2019-07-30 15:23:40 +02:00
|
|
|
.bip70_name = "liquidv1",
|
2019-06-29 18:49:41 +02:00
|
|
|
.genesis_blockhash = {{{.u.u8 = {0x14, 0x66, 0x27, 0x58, 0x36, 0x22, 0x0d,
|
|
|
|
0xb2, 0x94, 0x4c, 0xa0, 0x59, 0xa3, 0xa1,
|
|
|
|
0x0e, 0xf6, 0xfd, 0x2e, 0xa6, 0x84, 0xb0,
|
|
|
|
0x68, 0x8d, 0x2c, 0x37, 0x92, 0x96, 0x88,
|
|
|
|
0x8a, 0x20, 0x60, 0x03}}}},
|
|
|
|
.rpc_port = 7041,
|
2022-05-08 18:04:29 +02:00
|
|
|
.ln_port = 9735,
|
2019-06-29 18:49:41 +02:00
|
|
|
.cli = "elements-cli",
|
|
|
|
.cli_args = "-chain=liquidv1",
|
|
|
|
.dust_limit = {546},
|
|
|
|
.max_funding = AMOUNT_SAT_INIT((1 << 24) - 1),
|
|
|
|
.max_payment = AMOUNT_MSAT_INIT(0xFFFFFFFFULL),
|
|
|
|
.when_lightning_became_cool = 1,
|
|
|
|
.p2pkh_version = 57,
|
|
|
|
.p2sh_version = 39,
|
|
|
|
.testnet = false,
|
2019-07-30 15:23:40 +02:00
|
|
|
.fee_asset_tag = liquid_fee_asset,
|
2019-06-29 18:49:41 +02:00
|
|
|
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_MAIN_PUBLIC,
|
|
|
|
.bip32_privkey_version = BIP32_VER_MAIN_PRIVATE},
|
|
|
|
.is_elements = true},
|
2018-01-22 15:36:54 +01:00
|
|
|
};
|
2017-07-04 18:51:39 +02:00
|
|
|
|
|
|
|
const struct chainparams *chainparams_for_network(const char *network_name)
|
|
|
|
{
|
2017-07-12 13:05:39 +02:00
|
|
|
for (size_t i = 0; i < ARRAY_SIZE(networks); i++) {
|
|
|
|
if (streq(network_name, networks[i].network_name)) {
|
2017-07-04 18:51:39 +02:00
|
|
|
return &networks[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2018-09-06 18:40:11 +02:00
|
|
|
const struct chainparams *chainparams_by_chainhash(const struct bitcoin_blkid *chain_hash)
|
|
|
|
{
|
|
|
|
for (size_t i = 0; i < ARRAY_SIZE(networks); i++) {
|
|
|
|
if (bitcoin_blkid_eq(chain_hash, &networks[i].genesis_blockhash)) {
|
|
|
|
return &networks[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2021-11-29 08:10:06 +01:00
|
|
|
const struct chainparams *chainparams_by_lightning_hrp(const char *lightning_hrp)
|
2017-10-26 04:57:19 +02:00
|
|
|
{
|
|
|
|
for (size_t i = 0; i < ARRAY_SIZE(networks); i++) {
|
2021-11-29 08:10:06 +01:00
|
|
|
if (streq(lightning_hrp, networks[i].lightning_hrp)) {
|
2017-10-26 04:57:19 +02:00
|
|
|
return &networks[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
2019-07-19 04:37:33 +02:00
|
|
|
|
|
|
|
const char *chainparams_get_network_names(const tal_t *ctx)
|
|
|
|
{
|
|
|
|
char *networks_string = tal_strdup(ctx, networks[0].network_name);
|
|
|
|
for (size_t i = 1; i < ARRAY_SIZE(networks); ++i)
|
|
|
|
tal_append_fmt(&networks_string, ", %s", networks[i].network_name);
|
|
|
|
return networks_string;
|
|
|
|
}
|
2022-06-20 23:38:18 +02:00
|
|
|
|
|
|
|
int chainparams_get_ln_port(const struct chainparams *params)
|
|
|
|
{
|
|
|
|
assert(params);
|
|
|
|
return params->ln_port;
|
|
|
|
}
|