From 1ac1092aaab3b8712e9612df283300689a79ec3e Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 5 Sep 2018 18:58:48 -0700 Subject: [PATCH] lnd: ensure that we set the wallet birthday for --noencryptwallet In this commit, we ensure that we always set the wallet birthday. If the user has provided a seed, or is creating a new one, then it will be overwritten below. However, before this commit, if a user started with the --noencryptwallet flag, then we would _always_ start to rescan from genesis with the recent bug fix to ensure that we always start after the birthday. --- lnd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnd.go b/lnd.go index aea8689ab..3305ed1e5 100644 --- a/lnd.go +++ b/lnd.go @@ -204,7 +204,7 @@ func lndMain() error { var ( privateWalletPw = lnwallet.DefaultPrivatePassphrase publicWalletPw = lnwallet.DefaultPublicPassphrase - birthday time.Time + birthday = time.Now() recoveryWindow uint32 unlockedWallet *wallet.Wallet )