Skip to content

Commit 82fff3c

Browse files
committed
Remove litecoin support.
No idea if it works, we don't test it and nobody runs it. I guess not. Signed-off-by: Rusty Russell <[email protected]> Changelog-Removed: Config: non-functioning litecoin support (who knew we even had that?)
1 parent f3b227f commit 82fff3c

File tree

7 files changed

+6
-80
lines changed

7 files changed

+6
-80
lines changed

Dockerfile

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,6 @@ RUN gpg --quiet --import gpg/* && \
4343

4444
RUN tar xzf ${BITCOIN_TARBALL} --strip-components=1
4545

46-
ARG LITECOIN_VERSION=0.16.3
47-
ARG LITECOIN_BASE_URL=https://download.litecoin.org/litecoin-${LITECOIN_VERSION}
48-
ARG LITECOIN_URL=${LITECOIN_BASE_URL}/linux
49-
ARG LITECOIN_TARBALL=litecoin-${LITECOIN_VERSION}-${target_arch}.tar.gz
50-
51-
WORKDIR /opt/litecoin
52-
53-
ADD ${LITECOIN_URL}/${LITECOIN_TARBALL} .
54-
ADD ${LITECOIN_URL}/${LITECOIN_TARBALL}.asc .
55-
ADD ${LITECOIN_BASE_URL}/SHA256SUMS.asc .
56-
COPY contrib/keys/litecoin/ gpg/
57-
58-
RUN gpg --quiet --import gpg/* && \
59-
gpg --verify SHA256SUMS.asc && \
60-
gpg --verify ${LITECOIN_TARBALL}.asc ${LITECOIN_TARBALL} && \
61-
sha256sum -c SHA256SUMS.asc --ignore-missing
62-
63-
RUN tar xzf ${LITECOIN_TARBALL} --strip-components=1
64-
6546
FROM base-host AS base-builder
6647

6748
RUN apt-get update && \
@@ -185,7 +166,6 @@ RUN apt-get update && \
185166
rm -rf /var/lib/apt/lists/*
186167

187168
COPY --from=downloader /opt/bitcoin/bin/bitcoin-cli /usr/bin/
188-
COPY --from=downloader /opt/litecoin/bin/litecoin-cli /usr/bin/
189169
COPY --from=builder /tmp/lightning_install/ /usr/local/
190170

191171
COPY tools/docker-entrypoint.sh /entrypoint.sh
@@ -197,4 +177,4 @@ ENV LIGHTNINGD_NETWORK=bitcoin
197177

198178
EXPOSE 9735 9835
199179
VOLUME ["/root/.lightning"]
200-
ENTRYPOINT ["/entrypoint.sh"]
180+
ENTRYPOINT ["/entrypoint.sh"]

bitcoin/chainparams.c

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -162,58 +162,6 @@ const struct chainparams networks[] = {
162162
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_TEST_PUBLIC,
163163
.bip32_privkey_version = BIP32_VER_TEST_PRIVATE},
164164
.is_elements = false},
165-
{.network_name = "litecoin",
166-
.onchain_hrp = "ltc",
167-
.lightning_hrp = "ltc",
168-
.bip70_name = "main",
169-
.genesis_blockhash = {{{.u.u8 = {0xe2, 0xbf, 0x04, 0x7e, 0x7e, 0x5a, 0x19,
170-
0x1a, 0xa4, 0xef, 0x34, 0xd3, 0x14, 0x97,
171-
0x9d, 0xc9, 0x98, 0x6e, 0x0f, 0x19, 0x25,
172-
0x1e, 0xda, 0xba, 0x59, 0x40, 0xfd, 0x1f,
173-
0xe3, 0x65, 0xa7, 0x12}}}},
174-
.rpc_port = 9332,
175-
.ln_port = 9735,
176-
.cli = "litecoin-cli",
177-
.cli_args = NULL,
178-
.cli_min_supported_version = 150000,
179-
.dust_limit = { 100000 },
180-
.max_funding = AMOUNT_SAT_INIT(60 * ((1 << 24) - 1)),
181-
.max_payment = AMOUNT_MSAT_INIT(60 * 0xFFFFFFFFULL),
182-
.max_supply = AMOUNT_SAT_INIT(2100000000000000),
183-
.when_lightning_became_cool = 1320000,
184-
.p2pkh_version = 48,
185-
.p2sh_version = 50,
186-
.testnet = false,
187-
.fee_asset_tag = NULL,
188-
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_MAIN_PUBLIC,
189-
.bip32_privkey_version = BIP32_VER_MAIN_PRIVATE},
190-
.is_elements = false},
191-
{.network_name = "litecoin-testnet",
192-
.onchain_hrp = "tltc",
193-
.lightning_hrp = "tltc",
194-
.bip70_name = "test",
195-
.genesis_blockhash = {{{.u.u8 = {0xa0, 0x29, 0x3e, 0x4e, 0xeb, 0x3d, 0xa6,
196-
0xe6, 0xf5, 0x6f, 0x81, 0xed, 0x59, 0x5f,
197-
0x57, 0x88, 0x0d, 0x1a, 0x21, 0x56, 0x9e,
198-
0x13, 0xee, 0xfd, 0xd9, 0x51, 0x28, 0x4b,
199-
0x5a, 0x62, 0x66, 0x49}}}},
200-
.rpc_port = 19332,
201-
.ln_port = 9735,
202-
.cli = "litecoin-cli",
203-
.cli_args = "-testnet",
204-
.cli_min_supported_version = 150000,
205-
.dust_limit = { 100000 },
206-
.max_funding = AMOUNT_SAT_INIT(60 * ((1 << 24) - 1)),
207-
.max_payment = AMOUNT_MSAT_INIT(60 * 0xFFFFFFFFULL),
208-
.max_supply = AMOUNT_SAT_INIT(2100000000000000),
209-
.when_lightning_became_cool = 1,
210-
.p2pkh_version = 111,
211-
.p2sh_version = 58,
212-
.testnet = true,
213-
.fee_asset_tag = NULL,
214-
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_TEST_PUBLIC,
215-
.bip32_privkey_version = BIP32_VER_TEST_PRIVATE},
216-
.is_elements = false},
217165
{.network_name = "liquid-regtest",
218166
.onchain_hrp = "ert",
219167
.lightning_hrp = "ert",

common/configdir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ struct configvar **initial_config_opts(const tal_t *ctx,
341341
opt_register_early_arg("--network", opt_set_network, opt_show_network,
342342
NULL,
343343
"Select the network parameters (bitcoin, testnet,"
344-
" signet, regtest, litecoin or litecoin-testnet)");
344+
" signet, or regtest)");
345345
opt_register_early_noarg("--testnet",
346346
opt_set_specific_network, "testnet",
347347
"Alias for --network=testnet");

devtools/gossipwith.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,7 @@ int main(int argc, char *argv[])
369369
opt_register_arg("--network", opt_set_network, opt_show_network,
370370
NULL,
371371
"Select the network parameters (bitcoin, testnet, signet,"
372-
" regtest, liquid, liquid-regtest, litecoin or"
373-
" litecoin-testnet)");
372+
" regtest, liquid, or liquid-regtest)");
374373
opt_register_noarg("--must-get-max-messages", opt_set_bool, &no_early_close,
375374
"Fail with exit code 1 unless we reach maximum messages");
376375
opt_register_noarg("--help|-h", opt_usage_and_exit,

doc/lightning-reckless.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Available option flags:
8585
request additional debug output
8686

8787
**--network**=*network*
88-
specify bitcoin, regtest, liquid, liquid-regtest, litecoin, signet,
88+
specify bitcoin, regtest, liquid, liquid-regtest, signet,
8989
or testnet networks. (default: bitcoin)
9090

9191
NOTES

hsmd/libhsmd.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2466,8 +2466,7 @@ u8 *hsmd_init(const u8 *secret_data, size_t secret_len, const u64 hsmd_version,
24662466

24672467
/* Fill in the BIP32 tree for bitcoin addresses. */
24682468
/* In libwally-core, the version BIP32_VER_TEST_PRIVATE is for testnet/regtest,
2469-
* and BIP32_VER_MAIN_PRIVATE is for mainnet. For litecoin, we also set it like
2470-
* bitcoin else.*/
2469+
* and BIP32_VER_MAIN_PRIVATE is for mainnet. */
24712470
do {
24722471
hkdf_sha256(bip32_seed, sizeof(bip32_seed),
24732472
&salt, sizeof(salt),

tools/reckless

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2033,7 +2033,7 @@ if __name__ == '__main__':
20332033

20342034
NETWORK = 'regtest' if args.regtest else 'bitcoin'
20352035
SUPPORTED_NETWORKS = ['bitcoin', 'regtest', 'liquid', 'liquid-regtest',
2036-
'litecoin', 'signet', 'testnet', 'testnet4']
2036+
'signet', 'testnet', 'testnet4']
20372037
if args.version:
20382038
report_version()
20392039
elif args.cmd1 is None:

0 commit comments

Comments
 (0)