Skip to content

Commit

Permalink
Add litecoin testnet support
Browse files Browse the repository at this point in the history
  • Loading branch information
lvaccaro authored and cdecker committed Jan 28, 2018
1 parent 9f47c04 commit af26c91
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion bitcoin/chainparams.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion lightningd/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit af26c91

Please sign in to comment.