lnd: rename var mnemonic
-> seed
This matches lnd's terminology.
This commit is contained in:
parent
84fe731c94
commit
15288d58e1
|
@ -205,16 +205,16 @@ in {
|
||||||
} >> '${cfg.dataDir}/lnd.conf'
|
} >> '${cfg.dataDir}/lnd.conf'
|
||||||
|
|
||||||
if [[ ! -f ${networkDir}/wallet.db ]]; then
|
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"
|
echo "Create lnd seed"
|
||||||
(umask u=r,go=; ${lndinit} gen-seed > "$mnemonic")
|
(umask u=r,go=; ${lndinit} gen-seed > "$seed")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Create lnd wallet"
|
echo "Create lnd wallet"
|
||||||
${lndinit} -v init-wallet \
|
${lndinit} -v init-wallet \
|
||||||
--file.seed="$mnemonic" \
|
--file.seed="$seed" \
|
||||||
--file.wallet-password='${secretsDir}/lnd-wallet-password' \
|
--file.wallet-password='${secretsDir}/lnd-wallet-password' \
|
||||||
--init-file.output-wallet-dir='${cfg.networkDir}'
|
--init-file.output-wallet-dir='${cfg.networkDir}'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user