Skip to content

Commit cc3e43d

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 e7cd000 commit cc3e43d

File tree

7 files changed

+5
-69
lines changed

7 files changed

+5
-69
lines changed

Dockerfile

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,6 @@ RUN mkdir /opt/bitcoin && cd /opt/bitcoin \
4545
&& tar -xzvf $BITCOIN_TARBALL $BD/ --strip-components=1 \
4646
&& rm $BITCOIN_TARBALL
4747

48-
ENV LITECOIN_VERSION 0.16.3
49-
ENV LITECOIN_URL https://download.litecoin.org/litecoin-${LITECOIN_VERSION}/linux/litecoin-${LITECOIN_VERSION}-${TARBALL_ARCH_FINAL}.tar.gz
50-
51-
# install litecoin binaries
52-
RUN mkdir /opt/litecoin && cd /opt/litecoin \
53-
&& wget -qO litecoin.tar.gz "$LITECOIN_URL" \
54-
&& tar -xzvf litecoin.tar.gz litecoin-$LITECOIN_VERSION/bin/litecoin-cli --strip-components=1 --exclude=*-qt \
55-
&& rm litecoin.tar.gz
56-
5748
FROM --platform=${DEFAULT_TARGETPLATFORM} ${BASE_DISTRO} AS base-builder
5849
RUN apt-get update -qq && \
5950
apt-get install -qq -y --no-install-recommends \
@@ -264,7 +255,6 @@ RUN --mount=type=bind,from=builder,source=/var/libpq,target=/var/libpq,rw \
264255
COPY --from=builder /tmp/lightning_install/ /usr/local/
265256
COPY --from=builder-python /root/.venvs/cln/lib/python3.11/site-packages /usr/local/lib/python3.11/dist-packages/
266257
COPY --from=downloader /opt/bitcoin/bin /usr/bin
267-
COPY --from=downloader /opt/litecoin/bin /usr/bin
268258
COPY tools/docker-entrypoint.sh entrypoint.sh
269259

270260
EXPOSE 9735 9835

bitcoin/chainparams.c

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

common/configdir.c

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

devtools/gossipwith.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,7 @@ int main(int argc, char *argv[])
375375
opt_register_arg("--network", opt_set_network, opt_show_network,
376376
NULL,
377377
"Select the network parameters (bitcoin, testnet, signet,"
378-
" regtest, liquid, liquid-regtest, litecoin or"
379-
" litecoin-testnet)");
378+
" regtest, liquid, or liquid-regtest)");
380379
opt_register_noarg("--must-get-max-messages", opt_set_bool, &no_early_close,
381380
"Fail with exit code 1 unless we reach maximum messages");
382381
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
@@ -2347,8 +2347,7 @@ u8 *hsmd_init(struct secret hsm_secret, const u64 hsmd_version,
23472347

23482348
/* Fill in the BIP32 tree for bitcoin addresses. */
23492349
/* In libwally-core, the version BIP32_VER_TEST_PRIVATE is for testnet/regtest,
2350-
* and BIP32_VER_MAIN_PRIVATE is for mainnet. For litecoin, we also set it like
2351-
* bitcoin else.*/
2350+
* and BIP32_VER_MAIN_PRIVATE is for mainnet. */
23522351
do {
23532352
hkdf_sha256(bip32_seed, sizeof(bip32_seed),
23542353
&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)