From 15288d58e1d4456f569b49b859f152b3a4247a21 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Tue, 17 May 2022 13:18:39 +0200 Subject: [PATCH] lnd: rename var `mnemonic` -> `seed` This matches lnd's terminology. --- modules/lnd.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/lnd.nix b/modules/lnd.nix index 8cdbcd4..25e26c6 100644 --- a/modules/lnd.nix +++ b/modules/lnd.nix @@ -205,16 +205,16 @@ in { } >> '${cfg.dataDir}/lnd.conf' if [[ ! -f ${networkDir}/wallet.db ]]; then - mnemonic='${cfg.dataDir}/lnd-seed-mnemonic' + seed='${cfg.dataDir}/lnd-seed-mnemonic' - if [[ ! -f "$mnemonic" ]]; then + if [[ ! -f "$seed" ]]; then echo "Create lnd seed" - (umask u=r,go=; ${lndinit} gen-seed > "$mnemonic") + (umask u=r,go=; ${lndinit} gen-seed > "$seed") fi echo "Create lnd wallet" ${lndinit} -v init-wallet \ - --file.seed="$mnemonic" \ + --file.seed="$seed" \ --file.wallet-password='${secretsDir}/lnd-wallet-password' \ --init-file.output-wallet-dir='${cfg.networkDir}' fi