From d85e58f43589494ec89fa9a5f224b3fe0e0dd336 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Tue, 4 Sep 2018 18:42:40 -0700 Subject: [PATCH] config: rename noencryptwallet to noseedbackup This commit renames the confusing noencryptwallet flag to noseedbackup, since this highlights the more crucial information of the flags behavior to the user. The description has also been capitalized to urge the user think twice about what they're doing. --- config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.go b/config.go index 32a5403d..4dcd98de 100644 --- a/config.go +++ b/config.go @@ -45,7 +45,7 @@ const ( defaultPeerPort = 9735 defaultRPCHost = "localhost" defaultMaxPendingChannels = 1 - defaultNoEncryptWallet = false + defaultNoSeedBackup = false defaultTrickleDelay = 30 * 1000 defaultInactiveChanTimeout = 20 * time.Minute defaultMaxLogFiles = 3 @@ -222,7 +222,7 @@ type config struct { 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."` + NoSeedBackup bool `long:"noseedbackup" description:"If true, NO SEED WILL BE EXPOSED AND THE WALLET WILL BE ENCRYPTED USING THE DEFAULT PASSPHRASE -- EVER. THIS FLAG IS ONLY FOR TESTING AND IS BEING DEPRECATED."` TrickleDelay int `long:"trickledelay" description:"Time in milliseconds between each release of announcements to the network"` InactiveChanTimeout time.Duration `long:"inactivechantimeout" description:"If a channel has been inactive for the set time, send a ChannelUpdate disabling it."` @@ -288,7 +288,7 @@ func loadConfig() (*config, error) { RPCHost: defaultRPCHost, }, MaxPendingChannels: defaultMaxPendingChannels, - NoEncryptWallet: defaultNoEncryptWallet, + NoSeedBackup: defaultNoSeedBackup, Autopilot: &autoPilotConfig{ MaxChannels: 5, Allocation: 0.6,