config: add --noencryptwallet flag
This commit add the --noencryptwallet flag to lnd config, to be used by users wanting to disable wallet encryption.
This commit is contained in:
parent
b7ba2697c8
commit
f1c7dc1cbd
@ -35,6 +35,7 @@ const (
|
|||||||
defaultRPCHost = "localhost"
|
defaultRPCHost = "localhost"
|
||||||
defaultMaxPendingChannels = 1
|
defaultMaxPendingChannels = 1
|
||||||
defaultNumChanConfs = 1
|
defaultNumChanConfs = 1
|
||||||
|
defaultNoEncryptWallet = false
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -128,6 +129,8 @@ type config struct {
|
|||||||
Autopilot *autoPilotConfig `group:"autopilot" namespace:"autopilot"`
|
Autopilot *autoPilotConfig `group:"autopilot" namespace:"autopilot"`
|
||||||
|
|
||||||
NoNetBootstrap bool `long:"nobootstrap" description:"If true, then automatic network bootstrapping will not be attempted."`
|
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
|
// loadConfig initializes and parses the config using a config file and command
|
||||||
@ -153,6 +156,7 @@ func loadConfig() (*config, error) {
|
|||||||
RESTPort: defaultRESTPort,
|
RESTPort: defaultRESTPort,
|
||||||
MaxPendingChannels: defaultMaxPendingChannels,
|
MaxPendingChannels: defaultMaxPendingChannels,
|
||||||
DefaultNumChanConfs: defaultNumChanConfs,
|
DefaultNumChanConfs: defaultNumChanConfs,
|
||||||
|
NoEncryptWallet: defaultNoEncryptWallet,
|
||||||
Bitcoin: &chainConfig{
|
Bitcoin: &chainConfig{
|
||||||
RPCHost: defaultRPCHost,
|
RPCHost: defaultRPCHost,
|
||||||
RPCCert: defaultBtcdRPCCertFile,
|
RPCCert: defaultBtcdRPCCertFile,
|
||||||
|
Loading…
Reference in New Issue
Block a user