Add litecoin testnet support

This commit is contained in:
Luca Vaccaro 2018-01-22 15:36:54 +01:00 committed by Christian Decker
parent 9f47c0431a
commit af26c91a2c
2 changed files with 12 additions and 2 deletions

View File

@ -39,7 +39,17 @@ const struct chainparams networks[] = {
.cli = "litecoin-cli",
.cli_args = "",
.dust_limit = 100000,
.testnet = false}};
.testnet = false},
{.index = 4,
.network_name = "litecoin-testnet",
.bip173_name = "ltt",
.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 }}}},
.rpc_port = 19335,
.cli = "litecoin-cli",
.cli_args = "-testnet",
.dust_limit = 100000,
.testnet = true}
};
const struct chainparams *chainparams_for_network(const char *network_name)
{

View File

@ -270,7 +270,7 @@ static void config_register_opts(struct lightningd *ld)
opt_register_early_arg("--network", opt_set_network, opt_show_network,
ld,
"Select the network parameters (bitcoin, testnet,"
" regtest, or litecoin)");
" regtest, litecoin or litecoin-testnet)");
opt_register_arg("--allow-deprecated-apis",
opt_set_bool_arg, opt_show_bool,
&deprecated_apis,