Merge pull request #5448 from xanoni/sample-lnd-conf-cleanup

sample-lnd.conf: remove duplicate setting and clean up section separators
This commit is contained in:
Olaoluwa Osuntokun 2021-07-09 14:37:32 -07:00 committed by GitHub
commit 7e4b2b82f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,9 +14,9 @@
; The directory that lnd stores all wallet, chain, and channel related data ; The directory that lnd stores all wallet, chain, and channel related data
; within The default is ~/.lnd/data on POSIX OSes, $LOCALAPPDATA/Lnd/data on ; within The default is ~/.lnd/data on POSIX OSes, $LOCALAPPDATA/Lnd/data on
; Windows, ~/Library/Application Support/Lnd/data on Mac OS, and $home/lnd/data ; Windows, ~/Library/Application Support/Lnd/data on Mac OS, and $home/lnd/data
; on Plan9. Environment variables are expanded so they may be used. NOTE: ; on Plan9. Environment variables are expanded so they may be used. NOTE:
; Windows environment variables are typically %VARIABLE%, but they must be ; Windows environment variables are typically %VARIABLE%, but they must be
; accessed with $VARIABLE here. Also, ~ is expanded to $LOCALAPPDATA on Windows. ; accessed with $VARIABLE here. Also, ~ is expanded to $LOCALAPPDATA on Windows.
; datadir=~/.lnd/data ; datadir=~/.lnd/data
; The directory that logs are stored in. The logs are auto-rotated by default. ; The directory that logs are stored in. The logs are auto-rotated by default.
@ -122,8 +122,7 @@
; into account. ; into account.
; payments-expiration-grace-period=30 ; payments-expiration-grace-period=30
; Specify the interfaces to listen on for p2p connections. One listen
; Specify the interfaces to listen on for p2p connections. One listen
; address per line. ; address per line.
; All ipv4 on port 9735: ; All ipv4 on port 9735:
; listen=0.0.0.0:9735 ; listen=0.0.0.0:9735
@ -131,11 +130,11 @@
; listen=0.0.0.0:9735 ; listen=0.0.0.0:9735
; listen=[::1]:9736 ; listen=[::1]:9736
; Disable listening for incoming p2p connections. This will override all ; Disable listening for incoming p2p connections. This will override all
; listeners. ; listeners.
; nolisten=true ; nolisten=true
; Specify the interfaces to listen on for gRPC connections. One listen ; Specify the interfaces to listen on for gRPC connections. One listen
; address per line. ; address per line.
; Only ipv4 localhost on port 10009: ; Only ipv4 localhost on port 10009:
; rpclisten=localhost:10009 ; rpclisten=localhost:10009
@ -145,7 +144,7 @@
; On an Unix socket: ; On an Unix socket:
; rpclisten=unix:///var/run/lnd/lnd-rpclistener.sock ; rpclisten=unix:///var/run/lnd/lnd-rpclistener.sock
; Specify the interfaces to listen on for REST connections. One listen ; Specify the interfaces to listen on for REST connections. One listen
; address per line. ; address per line.
; All ipv4 interfaces on port 8080: ; All ipv4 interfaces on port 8080:
; restlisten=0.0.0.0:8080 ; restlisten=0.0.0.0:8080
@ -159,7 +158,6 @@
; policy of the REST RPC proxy. ; policy of the REST RPC proxy.
; restcors=https://my-special-site.com ; restcors=https://my-special-site.com
; Adding an external IP will advertise your node to the network. This signals ; Adding an external IP will advertise your node to the network. This signals
; that your node is available to accept incoming channels. If you don't wish to ; that your node is available to accept incoming channels. If you don't wish to
; advertise your node, this value doesn't need to be set. Unless specified ; advertise your node, this value doesn't need to be set. Unless specified
@ -179,9 +177,6 @@
; support devices behind multiple NATs. ; support devices behind multiple NATs.
; nat=true ; nat=true
; Disable listening for incoming peer connections.
; nolisten=true
; Disable REST API. ; Disable REST API.
; norest=true ; norest=true
@ -212,7 +207,7 @@
; Debug logging level. ; Debug logging level.
; Valid levels are {trace, debug, info, warn, error, critical} ; Valid levels are {trace, debug, info, warn, error, critical}
; You may also specify <global-level>,<subsystem>=<level>,<subsystem2>=<level>,... ; You may also specify <global-level>,<subsystem>=<level>,<subsystem2>=<level>,...
; to set log level for individual subsystems. Use lncli debuglevel --show to ; to set log level for individual subsystems. Use lncli debuglevel --show to
; list available subsystems. ; list available subsystems.
; debuglevel=debug,PEER=info ; debuglevel=debug,PEER=info
@ -520,6 +515,7 @@ bitcoin.node=btcd
; bitcoin.dnsseed=seed1.test.lightning ; bitcoin.dnsseed=seed1.test.lightning
; bitcoin.dnsseed=seed2.test.lightning,soa.seed2.test.lightning ; bitcoin.dnsseed=seed2.test.lightning,soa.seed2.test.lightning
[Btcd] [Btcd]
; The base directory that contains the node's data, logs, configuration file, ; The base directory that contains the node's data, logs, configuration file,
@ -586,6 +582,7 @@ bitcoin.node=btcd
; pruned blocks from. This only applies to pruned nodes. ; pruned blocks from. This only applies to pruned nodes.
; bitcoind.pruned-node-max-peers=4 ; bitcoind.pruned-node-max-peers=4
[neutrino] [neutrino]
; Connect only to the specified peers at startup. This creates a persistent ; Connect only to the specified peers at startup. This creates a persistent
@ -641,6 +638,7 @@ bitcoin.node=btcd
; Neutrino is used. (default: false) ; Neutrino is used. (default: false)
; neutrino.validatechannels=false ; neutrino.validatechannels=false
[Litecoin] [Litecoin]
; If the Litecoin chain should be active. Atm, only a single chain can be ; If the Litecoin chain should be active. Atm, only a single chain can be
@ -718,6 +716,7 @@ litecoin.node=ltcd
; litecoin.dnsseed=seed1.test-ltc.lightning ; litecoin.dnsseed=seed1.test-ltc.lightning
; litecoin.dnsseed=seed2.test-ltc.lightning,soa.seed2.test-ltc.lightning ; litecoin.dnsseed=seed2.test-ltc.lightning,soa.seed2.test-ltc.lightning
[Ltcd] [Ltcd]
; The base directory that contains the node's data, logs, configuration file, ; The base directory that contains the node's data, logs, configuration file,
@ -784,6 +783,7 @@ litecoin.node=ltcd
; pruned blocks from. This only applies to pruned nodes. ; pruned blocks from. This only applies to pruned nodes.
; litecoind.pruned-node-max-peers=4 ; litecoind.pruned-node-max-peers=4
[autopilot] [autopilot]
; If the autopilot agent should be active or not. The autopilot agent will ; If the autopilot agent should be active or not. The autopilot agent will
@ -822,6 +822,7 @@ litecoin.node=ltcd
; 3) ; 3)
; autopilot.conftarget=2 ; autopilot.conftarget=2
[tor] [tor]
; Allow outbound and inbound connections to be routed through Tor ; Allow outbound and inbound connections to be routed through Tor
; tor.active=true ; tor.active=true
@ -866,11 +867,13 @@ litecoin.node=ltcd
;The path to the private key of the watchtower onion service being created ;The path to the private key of the watchtower onion service being created
; tor.watchtowerkeypath=/other/path/ ; tor.watchtowerkeypath=/other/path/
[watchtower] [watchtower]
; Enable integrated watchtower listening on :9911 by default. ; Enable integrated watchtower listening on :9911 by default.
; watchtower.active=true ; watchtower.active=true
; Specify the interfaces to listen on for watchtower client connections. One ; Specify the interfaces to listen on for watchtower client connections. One
; listen address per line. If no port is specified the default port of 9911 will ; listen address per line. If no port is specified the default port of 9911 will
; be added implicitly. ; be added implicitly.
; All ipv4 on port 9911: ; All ipv4 on port 9911:
@ -900,7 +903,9 @@ litecoin.node=ltcd
; hanging up on client connections ; hanging up on client connections
; watchtower.writetimeout=15s ; watchtower.writetimeout=15s
[wtclient] [wtclient]
; Activate Watchtower Client. To get more information or configure watchtowers ; Activate Watchtower Client. To get more information or configure watchtowers
; run `lncli wtclient -h`. ; run `lncli wtclient -h`.
; wtclient.active=true ; wtclient.active=true
@ -916,7 +921,9 @@ litecoin.node=ltcd
; supported at this time, if none are provided the tower will not be enabled. ; supported at this time, if none are provided the tower will not be enabled.
; wtclient.private-tower-uris= ; wtclient.private-tower-uris=
[healthcheck] [healthcheck]
; The number of times we should attempt to query our chain backend before ; The number of times we should attempt to query our chain backend before
; gracefully shutting down. Set this value to 0 to disable this health check. ; gracefully shutting down. Set this value to 0 to disable this health check.
; healthcheck.chainbackend.attempts=3 ; healthcheck.chainbackend.attempts=3
@ -968,22 +975,27 @@ litecoin.node=ltcd
; This value must be >= 1m. ; This value must be >= 1m.
; healthcheck.tls.interval=1m ; healthcheck.tls.interval=1m
[signrpc] [signrpc]
; Path to the signer macaroon. ; Path to the signer macaroon.
; signrpc.signermacaroonpath=~/.lnd/data/chain/bitcoin/simnet/signer.macaroon ; signrpc.signermacaroonpath=~/.lnd/data/chain/bitcoin/simnet/signer.macaroon
[walletrpc] [walletrpc]
; Path to the wallet kit macaroon. ; Path to the wallet kit macaroon.
; walletrpc.walletkitmacaroonpath=~/.lnd/data/chain/bitcoin/simnet/walletkit.macaroon ; walletrpc.walletkitmacaroonpath=~/.lnd/data/chain/bitcoin/simnet/walletkit.macaroon
[chainrpc] [chainrpc]
; Path to the chain notifier macaroon. ; Path to the chain notifier macaroon.
; chainrpc.notifiermacaroonpath=~/.lnd/data/chain/bitcoin/simnet/chainnotifier.macaroon ; chainrpc.notifiermacaroonpath=~/.lnd/data/chain/bitcoin/simnet/chainnotifier.macaroon
[routerrpc] [routerrpc]
; Minimum required route success probability to attempt the payment (default: ; Minimum required route success probability to attempt the payment (default:
; 0.01) ; 0.01)
; routerrpc.minrtprob=1 ; routerrpc.minrtprob=1
@ -1014,19 +1026,22 @@ litecoin.node=ltcd
; Path to the router macaroon ; Path to the router macaroon
; routerrpc.routermacaroonpath=~/.lnd/data/chain/bitcoin/simnet/router.macaroon ; routerrpc.routermacaroonpath=~/.lnd/data/chain/bitcoin/simnet/router.macaroon
[workers] [workers]
; Maximum number of concurrent read pool workers. This number should be ; Maximum number of concurrent read pool workers. This number should be
; proportional to the number of peers. (default: 100) ; proportional to the number of peers. (default: 100)
; workers.read=200 ; workers.read=200
; Maximum number of concurrent write pool workers. This number should be ; Maximum number of concurrent write pool workers. This number should be
; proportional to the number of CPUs on the host. (default: 8) ; proportional to the number of CPUs on the host. (default: 8)
; workers.write=8 ; workers.write=8
; Maximum number of concurrent sig pool workers. This number should be ; Maximum number of concurrent sig pool workers. This number should be
; proportional to the number of CPUs on the host. (default: 8) ; proportional to the number of CPUs on the host. (default: 8)
; workers.sig=4 ; workers.sig=4
[caches] [caches]
; Maximum number of entries contained in the reject cache, which is used to speed ; Maximum number of entries contained in the reject cache, which is used to speed
@ -1039,7 +1054,9 @@ litecoin.node=ltcd
; roughly 2Kb. (default: 20000) ; roughly 2Kb. (default: 20000)
; caches.channel-cache-size=9000000 ; caches.channel-cache-size=9000000
[protocol] [protocol]
; If set, then lnd will create and accept requests for channels larger than 0.16 ; If set, then lnd will create and accept requests for channels larger than 0.16
; BTC ; BTC
; protocol.wumbo-channels=true ; protocol.wumbo-channels=true
@ -1050,7 +1067,9 @@ litecoin.node=ltcd
; (Deprecates the previous "protocol.anchors" setting.) ; (Deprecates the previous "protocol.anchors" setting.)
; protocol.no-anchors=true ; protocol.no-anchors=true
[db] [db]
; The selected database backend. The current default backend is "bolt". lnd ; The selected database backend. The current default backend is "bolt". lnd
; also has experimental support for etcd, a replicated backend. ; also has experimental support for etcd, a replicated backend.
; db.backend=bolt ; db.backend=bolt
@ -1059,7 +1078,9 @@ litecoin.node=ltcd
; a batch of modifications to disk. Defaults to 500 milliseconds. ; a batch of modifications to disk. Defaults to 500 milliseconds.
; db.batch-commit-interval=500ms ; db.batch-commit-interval=500ms
[etcd] [etcd]
; Etcd database host. ; Etcd database host.
; db.etcd.host=localhost:2379 ; db.etcd.host=localhost:2379
@ -1097,7 +1118,9 @@ litecoin.node=ltcd
; If non zero, LND will use this as peer port for the embedded etcd instance. ; If non zero, LND will use this as peer port for the embedded etcd instance.
; db.etcd.embedded_peer_port=1235 ; db.etcd.embedded_peer_port=1235
[cluster] [cluster]
; Enables leader election if set. ; Enables leader election if set.
; cluster.enable-leader-election=true ; cluster.enable-leader-election=true
@ -1111,7 +1134,9 @@ litecoin.node=ltcd
; Defaults to the hostname. ; Defaults to the hostname.
; cluster.id=example.com ; cluster.id=example.com
[bolt] [bolt]
; If true, prevents the database from syncing its freelist to disk. ; If true, prevents the database from syncing its freelist to disk.
; db.bolt.nofreelistsync=1 ; db.bolt.nofreelistsync=1
@ -1130,7 +1155,9 @@ litecoin.node=ltcd
; Specify the timeout to be used when opening the database. ; Specify the timeout to be used when opening the database.
; db.bolt.dbtimeout=60s ; db.bolt.dbtimeout=60s
[gossip] [gossip]
; Specify a set of pinned gossip syncers, which will always be actively syncing ; Specify a set of pinned gossip syncers, which will always be actively syncing
; whenever the corresponding peer is online. A pinned syncer does not count ; whenever the corresponding peer is online. A pinned syncer does not count
; towards the configured `numgraphsyncpeers` since pinned syncers are not ; towards the configured `numgraphsyncpeers` since pinned syncers are not
@ -1152,7 +1179,9 @@ litecoin.node=ltcd
; gossip.max-channel-update-burst=10 ; gossip.max-channel-update-burst=10
; gossip.channel-update-interval=1m ; gossip.channel-update-interval=1m
[invoices] [invoices]
; If a hold invoice has accepted htlcs that reach their expiry height and are ; If a hold invoice has accepted htlcs that reach their expiry height and are
; not timed out, the channel holding the htlc is force closed to resolve the ; not timed out, the channel holding the htlc is force closed to resolve the
; invoice's htlcs. To prevent force closes, lnd automatically cancels these ; invoice's htlcs. To prevent force closes, lnd automatically cancels these
@ -1172,7 +1201,9 @@ litecoin.node=ltcd
; ;
; invoices.holdexpirydelta=15 ; invoices.holdexpirydelta=15
[routing] [routing]
; DEPRECATED: This is now turned on by default for Neutrino (use ; DEPRECATED: This is now turned on by default for Neutrino (use
; neutrino.validatechannels=true to turn off) and shouldn't be used for any ; neutrino.validatechannels=true to turn off) and shouldn't be used for any
; other backend! ; other backend!