lnd.conf example
Based on:
Path to edit on the RaspiBlitz:
1
sudo nano /mnt/hdd/lnd/lnd.conf
Copied!
1
# Example configuration for lnd.
2
3
[Application Options]
4
#################################
5
# Unique settings for each node #
6
#################################
7
# up to 32 UTF-8 characters
8
alias=ALIAS
9
# choose from: https://www.color-hex.com/
10
color=COLOR
11
# default fees for new channels (does not affect existing ones)
12
bitcoin.feerate=100
13
bitcoin.basefee=1
14
minchansize=1000000
15
accept-keysend=true
16
protocol.wumbo-channels=1
17
# Domain, could use https://freedns.afraid.org
18
# tlsextradomain=lightning.yourhost.com
19
20
# RPC open to all connections on Port 10009
21
rpclisten=0.0.0.0:10009
22
# REST open to all connections on Port 8080
23
restlisten=0.0.0.0:8080
24
# not for Tor
25
nat=false
26
debuglevel=debug
27
maxpendingchannels=5
28
# to stop all incoming channels use:
29
# maxpendingchannels=0
30
# Set the maximum amount of commit fees in a channel
31
max-channel-fee-allocation=1.0
32
# Set the max timeout blocks of a payment
33
max-cltv-expiry=5000
34
35
#########################
36
# Improve startup speed #
37
#########################
38
# If true, we'll attempt to garbage collect canceled invoices upon start.
39
gc-canceled-invoices-on-startup=true
40
# If true, we'll delete newly canceled invoices on the fly.
41
gc-canceled-invoices-on-the-fly=true
42
# Avoid historical graph data sync
43
ignore-historical-gossip-filters=1
44
# Enable free list syncing for the default bbolt database. This will decrease
45
# start up time, but can result in performance degradation for very large
46
# databases, and also result in higher memory usage. If "free list corruption"
47
# is detected, then this flag may resolve things.
48
sync-freelist=true
49
# Avoid high startup overhead
50
# If true, will apply a randomized staggering between 0s and 30s when
51
# reconnecting to persistent peers on startup. The first 10 reconnections will be
52
# attempted instantly, regardless of the flag's value
53
stagger-initial-reconnect=true
54
55
#########################
56
# tls.cert improvements #
57
#########################
58
# Delete and recreate RPC TLS certificate when details change or cert expires
59
tlsautorefresh=1
60
# Do not include IPs in the RPC TLS certificate
61
tlsdisableautofill=1
62
63
##############################
64
# Optimise for cheap routes #
65
##############################
66
[routerrpc]
67
# Make sure that LND is the binary release or built with the routerrpc tag
68
# Set default chance of a hop success
69
routerrpc.apriorihopprob=0.5
70
# Start to ignore nodes if they return many failures (set to 1 to turn off)
71
routerrpc.aprioriweight=0.75
72
# Set minimum desired savings of trying a cheaper path
73
# The (virtual) fixed cost in sats of a failed payment attempt (default: 100)
74
routerrpc.attemptcost=10
75
# The (virtual) proportional cost in ppm of the total amount of a failed payment
76
# attempt (default: 1000)
77
routerrpc.attemptcostppm=10
78
# Set the number of historical routing records
79
routerrpc.maxmchistory=10000
80
# Set the min confidence in a path worth trying
81
routerrpc.minrtprob=0.005
82
# Set the time to forget past routing failures
83
routerrpc.penaltyhalflife=6h0m0s
84
85
# stability improvement on v0.14.1 - should b enot needed on v114.2 and above
86
# https://github.com/lightningnetwork/lnd/issues/6061#issuecomment-987779388
87
routerrpc.maxmchistory=0
88
89
########################
90
# Compact the database #
91
########################
92
# best to use on demand, can take several minutes
93
[bolt]
94
# Whether the databases used within lnd should automatically be compacted on
95
# every startup (and if the database has the configured minimum age). This is
96
# disabled by default because it requires additional disk space to be available
97
# during the compaction that is freed afterwards. In general compaction leads to
98
# smaller database files.
99
# db.bolt.auto-compact=true
100
# How long ago the last compaction of a database file must be for it to be
101
# considered for auto compaction again. Can be set to 0 to compact on every
102
# startup. (default: 168h)
103
# db.bolt.auto-compact-min-age=0
104
105
[Bitcoin]
106
bitcoin.active=1
107
bitcoin.node=bitcoind
108
# enable either testnet or mainnet
109
#bitcoin.testnet=1
110
bitcoin.mainnet=1
111
112
[Bitcoind]
113
bitcoind.rpcuser=RPC_USER
114
bitcoind.rpcpass=RPC_PASSWORD
115
bitcoind.rpchost=127.0.0.1
116
bitcoind.zmqpubrawblock=tcp://*:28332
117
bitcoind.zmqpubrawtx=tcp://*:28333
118
bitcoind.estimatemode=ECONOMICAL
119
120
[Wtclient]
121
wtclient.active=1
122
123
[Watchtower]
124
watchtower.active=1
125
126
[tor]
127
tor.active=true
128
tor.v3=true
129
tor.streamisolation=false
130
tor.skip-proxy-for-clearnet-targets=false
131
tor.privatekeypath=/mnt/hdd/lnd/v3_onion_private_key
132
tor.socks=9050
133
tor.control=9051
Copied!
LND needs to be restarted to use the new settings.
1
sudo systemctl restart lnd
Copied!
Copy link