mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-31 17:51:33 +02:00
config: Add bitcoind.{config,rpccookie} configuration options
Currently, the Bitcoind.Dir configuration option is used as the base directory for locating both the bitcoind configuration file and the RPC cookie file. However, it is quite common for Bitcoin Core to be packaged in such a way that the configuration file and the RPC cookie file reside in different directories: "/etc/bitcoin/bitcoin.conf" and "/var/lib/bitcoind/.cookie". This change makes it such that --bitcoind.config and --bitcoind.rpccookie options can be specified to override the default auto-detection logic, and if either is unspecified, the auto-detection logic will still do its job.
This commit is contained in:
@@ -4,6 +4,8 @@ package lncfg
|
||||
// bitcoind.
|
||||
type Bitcoind struct {
|
||||
Dir string `long:"dir" description:"The base directory that contains the node's data, logs, configuration file, etc."`
|
||||
ConfigPath string `long:"config" description:"Configuration filepath. If not set, will default to the default filename under 'dir'."`
|
||||
RPCCookie string `long:"rpccookie" description:"Authentication cookie file for RPC connections. If not set, will default to .cookie under 'dir'."`
|
||||
RPCHost string `long:"rpchost" description:"The daemon's rpc listening address. If a port is omitted, then the default port for the selected chain parameters will be used."`
|
||||
RPCUser string `long:"rpcuser" description:"Username for RPC connections"`
|
||||
RPCPass string `long:"rpcpass" default-mask:"-" description:"Password for RPC connections"`
|
||||
|
Reference in New Issue
Block a user