From f15e496fcc54c3cd73462e79132502ed6d974733 Mon Sep 17 00:00:00 2001 From: Aaron Dewes Date: Fri, 11 Feb 2022 08:41:04 +0100 Subject: [PATCH] Fix for electrs --- scripts/configure | 4 ++++ templates/electrs-sample.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/configure b/scripts/configure index 498f81a..f918fd4 100755 --- a/scripts/configure +++ b/scripts/configure @@ -298,6 +298,10 @@ LND_FEE_URL="" if BITCOIN_NETWORK == 'mainnet' and BITCOIN_NODE == 'neutrino': LND_FEE_URL="feeurl=https://nodes.lightning.computer/fees/v1/btc-fee-estimates.json" +BITCOIN_NETWORK_ELECTRS = BITCOIN_NETWORK +if BITCOIN_NETWORK_ELECTRS == "mainnet": + BITCOIN_NETWORK_ELECTRS = "bitcoin" + # Checks if a variable with the name exists, if not, check if an env var with the name existts # if neither exists, then exit with an error def get_var(var_name, other_locals, file_name): diff --git a/templates/electrs-sample.toml b/templates/electrs-sample.toml index e847ee6..61d0949 100644 --- a/templates/electrs-sample.toml +++ b/templates/electrs-sample.toml @@ -7,7 +7,7 @@ # A few modifications will be kept, including alias, color, channel size limitations and more if you contact us. log_filters = "INFO" -network = "" +network = "" db_dir = "/data/db" daemon_dir = "/bitcoin" daemon_rpc_addr = ":"