lnd: use default enc pw when noseedbackup is passed

This commit is contained in:
Conner Fromknecht 2018-09-04 18:53:14 -07:00
parent 7c4abd2418
commit fb3ace9b28
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

4
lnd.go

@ -210,9 +210,9 @@ func lndMain() error {
) )
// We wait until the user provides a password over RPC. In case lnd is // We wait until the user provides a password over RPC. In case lnd is
// started with the --noencryptwallet flag, we use the default password // started with the --noseedbackup flag, we use the default password
// for wallet encryption. // for wallet encryption.
if !cfg.NoEncryptWallet { if !cfg.NoSeedBackup {
walletInitParams, err := waitForWalletPassword( walletInitParams, err := waitForWalletPassword(
cfg.RPCListeners, cfg.RESTListeners, serverOpts, cfg.RPCListeners, cfg.RESTListeners, serverOpts,
proxyOpts, tlsConf, proxyOpts, tlsConf,