From f1c7dc1cbd0e6681652cb7510196c41525c5fb97 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Thu, 12 Oct 2017 11:19:51 +0200 Subject: [PATCH] config: add --noencryptwallet flag This commit add the --noencryptwallet flag to lnd config, to be used by users wanting to disable wallet encryption. --- config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.go b/config.go index 4b87fef4..d28c83ef 100644 --- a/config.go +++ b/config.go @@ -35,6 +35,7 @@ const ( defaultRPCHost = "localhost" defaultMaxPendingChannels = 1 defaultNumChanConfs = 1 + defaultNoEncryptWallet = false ) var ( @@ -128,6 +129,8 @@ type config struct { Autopilot *autoPilotConfig `group:"autopilot" namespace:"autopilot"` NoNetBootstrap bool `long:"nobootstrap" description:"If true, then automatic network bootstrapping will not be attempted."` + + NoEncryptWallet bool `long:"noencryptwallet" description:"If set, wallet will be encrypted using the default passphrase."` } // loadConfig initializes and parses the config using a config file and command @@ -153,6 +156,7 @@ func loadConfig() (*config, error) { RESTPort: defaultRESTPort, MaxPendingChannels: defaultMaxPendingChannels, DefaultNumChanConfs: defaultNumChanConfs, + NoEncryptWallet: defaultNoEncryptWallet, Bitcoin: &chainConfig{ RPCHost: defaultRPCHost, RPCCert: defaultBtcdRPCCertFile,