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 <rusty@rustcorp.com.au> Changelog-Removed: Config: non-functioning litecoin support (who knew we even had that?)
This commit is contained in:
22
Dockerfile
22
Dockerfile
@@ -43,25 +43,6 @@ RUN gpg --quiet --import gpg/* && \
|
|||||||
|
|
||||||
RUN tar xzf ${BITCOIN_TARBALL} --strip-components=1
|
RUN tar xzf ${BITCOIN_TARBALL} --strip-components=1
|
||||||
|
|
||||||
ARG LITECOIN_VERSION=0.16.3
|
|
||||||
ARG LITECOIN_BASE_URL=https://download.litecoin.org/litecoin-${LITECOIN_VERSION}
|
|
||||||
ARG LITECOIN_URL=${LITECOIN_BASE_URL}/linux
|
|
||||||
ARG LITECOIN_TARBALL=litecoin-${LITECOIN_VERSION}-${target_arch}.tar.gz
|
|
||||||
|
|
||||||
WORKDIR /opt/litecoin
|
|
||||||
|
|
||||||
ADD ${LITECOIN_URL}/${LITECOIN_TARBALL} .
|
|
||||||
ADD ${LITECOIN_URL}/${LITECOIN_TARBALL}.asc .
|
|
||||||
ADD ${LITECOIN_BASE_URL}/SHA256SUMS.asc .
|
|
||||||
COPY contrib/keys/litecoin/ gpg/
|
|
||||||
|
|
||||||
RUN gpg --quiet --import gpg/* && \
|
|
||||||
gpg --verify SHA256SUMS.asc && \
|
|
||||||
gpg --verify ${LITECOIN_TARBALL}.asc ${LITECOIN_TARBALL} && \
|
|
||||||
sha256sum -c SHA256SUMS.asc --ignore-missing
|
|
||||||
|
|
||||||
RUN tar xzf ${LITECOIN_TARBALL} --strip-components=1
|
|
||||||
|
|
||||||
FROM base-host AS base-builder
|
FROM base-host AS base-builder
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
@@ -185,7 +166,6 @@ RUN apt-get update && \
|
|||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY --from=downloader /opt/bitcoin/bin/bitcoin-cli /usr/bin/
|
COPY --from=downloader /opt/bitcoin/bin/bitcoin-cli /usr/bin/
|
||||||
COPY --from=downloader /opt/litecoin/bin/litecoin-cli /usr/bin/
|
|
||||||
COPY --from=builder /tmp/lightning_install/ /usr/local/
|
COPY --from=builder /tmp/lightning_install/ /usr/local/
|
||||||
|
|
||||||
COPY tools/docker-entrypoint.sh /entrypoint.sh
|
COPY tools/docker-entrypoint.sh /entrypoint.sh
|
||||||
@@ -197,4 +177,4 @@ ENV LIGHTNINGD_NETWORK=bitcoin
|
|||||||
|
|
||||||
EXPOSE 9735 9835
|
EXPOSE 9735 9835
|
||||||
VOLUME ["/root/.lightning"]
|
VOLUME ["/root/.lightning"]
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|||||||
@@ -162,58 +162,6 @@ const struct chainparams networks[] = {
|
|||||||
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_TEST_PUBLIC,
|
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_TEST_PUBLIC,
|
||||||
.bip32_privkey_version = BIP32_VER_TEST_PRIVATE},
|
.bip32_privkey_version = BIP32_VER_TEST_PRIVATE},
|
||||||
.is_elements = false},
|
.is_elements = false},
|
||||||
{.network_name = "litecoin",
|
|
||||||
.onchain_hrp = "ltc",
|
|
||||||
.lightning_hrp = "ltc",
|
|
||||||
.bip70_name = "main",
|
|
||||||
.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}}}},
|
|
||||||
.rpc_port = 9332,
|
|
||||||
.ln_port = 9735,
|
|
||||||
.cli = "litecoin-cli",
|
|
||||||
.cli_args = NULL,
|
|
||||||
.cli_min_supported_version = 150000,
|
|
||||||
.dust_limit = { 100000 },
|
|
||||||
.max_funding = AMOUNT_SAT_INIT(60 * ((1 << 24) - 1)),
|
|
||||||
.max_payment = AMOUNT_MSAT_INIT(60 * 0xFFFFFFFFULL),
|
|
||||||
.max_supply = AMOUNT_SAT_INIT(2100000000000000),
|
|
||||||
.when_lightning_became_cool = 1320000,
|
|
||||||
.p2pkh_version = 48,
|
|
||||||
.p2sh_version = 50,
|
|
||||||
.testnet = false,
|
|
||||||
.fee_asset_tag = NULL,
|
|
||||||
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_MAIN_PUBLIC,
|
|
||||||
.bip32_privkey_version = BIP32_VER_MAIN_PRIVATE},
|
|
||||||
.is_elements = false},
|
|
||||||
{.network_name = "litecoin-testnet",
|
|
||||||
.onchain_hrp = "tltc",
|
|
||||||
.lightning_hrp = "tltc",
|
|
||||||
.bip70_name = "test",
|
|
||||||
.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 = 19332,
|
|
||||||
.ln_port = 9735,
|
|
||||||
.cli = "litecoin-cli",
|
|
||||||
.cli_args = "-testnet",
|
|
||||||
.cli_min_supported_version = 150000,
|
|
||||||
.dust_limit = { 100000 },
|
|
||||||
.max_funding = AMOUNT_SAT_INIT(60 * ((1 << 24) - 1)),
|
|
||||||
.max_payment = AMOUNT_MSAT_INIT(60 * 0xFFFFFFFFULL),
|
|
||||||
.max_supply = AMOUNT_SAT_INIT(2100000000000000),
|
|
||||||
.when_lightning_became_cool = 1,
|
|
||||||
.p2pkh_version = 111,
|
|
||||||
.p2sh_version = 58,
|
|
||||||
.testnet = true,
|
|
||||||
.fee_asset_tag = NULL,
|
|
||||||
.bip32_key_version = {.bip32_pubkey_version = BIP32_VER_TEST_PUBLIC,
|
|
||||||
.bip32_privkey_version = BIP32_VER_TEST_PRIVATE},
|
|
||||||
.is_elements = false},
|
|
||||||
{.network_name = "liquid-regtest",
|
{.network_name = "liquid-regtest",
|
||||||
.onchain_hrp = "ert",
|
.onchain_hrp = "ert",
|
||||||
.lightning_hrp = "ert",
|
.lightning_hrp = "ert",
|
||||||
|
|||||||
@@ -341,7 +341,7 @@ struct configvar **initial_config_opts(const tal_t *ctx,
|
|||||||
opt_register_early_arg("--network", opt_set_network, opt_show_network,
|
opt_register_early_arg("--network", opt_set_network, opt_show_network,
|
||||||
NULL,
|
NULL,
|
||||||
"Select the network parameters (bitcoin, testnet,"
|
"Select the network parameters (bitcoin, testnet,"
|
||||||
" signet, regtest, litecoin or litecoin-testnet)");
|
" signet, or regtest)");
|
||||||
opt_register_early_noarg("--testnet",
|
opt_register_early_noarg("--testnet",
|
||||||
opt_set_specific_network, "testnet",
|
opt_set_specific_network, "testnet",
|
||||||
"Alias for --network=testnet");
|
"Alias for --network=testnet");
|
||||||
|
|||||||
@@ -369,8 +369,7 @@ int main(int argc, char *argv[])
|
|||||||
opt_register_arg("--network", opt_set_network, opt_show_network,
|
opt_register_arg("--network", opt_set_network, opt_show_network,
|
||||||
NULL,
|
NULL,
|
||||||
"Select the network parameters (bitcoin, testnet, signet,"
|
"Select the network parameters (bitcoin, testnet, signet,"
|
||||||
" regtest, liquid, liquid-regtest, litecoin or"
|
" regtest, liquid, or liquid-regtest)");
|
||||||
" litecoin-testnet)");
|
|
||||||
opt_register_noarg("--must-get-max-messages", opt_set_bool, &no_early_close,
|
opt_register_noarg("--must-get-max-messages", opt_set_bool, &no_early_close,
|
||||||
"Fail with exit code 1 unless we reach maximum messages");
|
"Fail with exit code 1 unless we reach maximum messages");
|
||||||
opt_register_noarg("--help|-h", opt_usage_and_exit,
|
opt_register_noarg("--help|-h", opt_usage_and_exit,
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ Available option flags:
|
|||||||
request additional debug output
|
request additional debug output
|
||||||
|
|
||||||
**--network**=*network*
|
**--network**=*network*
|
||||||
specify bitcoin, regtest, liquid, liquid-regtest, litecoin, signet,
|
specify bitcoin, regtest, liquid, liquid-regtest, signet,
|
||||||
or testnet networks. (default: bitcoin)
|
or testnet networks. (default: bitcoin)
|
||||||
|
|
||||||
NOTES
|
NOTES
|
||||||
|
|||||||
@@ -2466,8 +2466,7 @@ u8 *hsmd_init(const u8 *secret_data, size_t secret_len, const u64 hsmd_version,
|
|||||||
|
|
||||||
/* Fill in the BIP32 tree for bitcoin addresses. */
|
/* Fill in the BIP32 tree for bitcoin addresses. */
|
||||||
/* In libwally-core, the version BIP32_VER_TEST_PRIVATE is for testnet/regtest,
|
/* In libwally-core, the version BIP32_VER_TEST_PRIVATE is for testnet/regtest,
|
||||||
* and BIP32_VER_MAIN_PRIVATE is for mainnet. For litecoin, we also set it like
|
* and BIP32_VER_MAIN_PRIVATE is for mainnet. */
|
||||||
* bitcoin else.*/
|
|
||||||
do {
|
do {
|
||||||
hkdf_sha256(bip32_seed, sizeof(bip32_seed),
|
hkdf_sha256(bip32_seed, sizeof(bip32_seed),
|
||||||
&salt, sizeof(salt),
|
&salt, sizeof(salt),
|
||||||
|
|||||||
@@ -2033,7 +2033,7 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
NETWORK = 'regtest' if args.regtest else 'bitcoin'
|
NETWORK = 'regtest' if args.regtest else 'bitcoin'
|
||||||
SUPPORTED_NETWORKS = ['bitcoin', 'regtest', 'liquid', 'liquid-regtest',
|
SUPPORTED_NETWORKS = ['bitcoin', 'regtest', 'liquid', 'liquid-regtest',
|
||||||
'litecoin', 'signet', 'testnet', 'testnet4']
|
'signet', 'testnet', 'testnet4']
|
||||||
if args.version:
|
if args.version:
|
||||||
report_version()
|
report_version()
|
||||||
elif args.cmd1 is None:
|
elif args.cmd1 is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user