Difference between revisions of "LND Configuration Settings"

From PlebNet Wiki
Jump to navigation Jump to search
m
(username removed)
Line 1: Line 1:
== Intro ==
== Intro ==


This is a work in progress, will add better descriptions and formatting shortly.
    Ever since the Lightning Network has started and when people began opening channels with others they have been trying to get the most out their Node.  People have been doing this ever since computers have gotten into peoples hands.  Trying out different settings and finding out what works best.
Anyone who would love to go over a long list of config parameters which can be used could check out this Lnd GitHub page
https://github.com/lightningnetwork/lnd/blob/master/sample-lnd.conf
 
    There are more entries then I ever thought possible, but this Wiki page is how to make adjustments to the Lightning Node environment which helps ones node to perform better.  Something which we'd all would like to happen.
The list which follows is the most common settings which Node Operators have come to agree which best suites a Node which wants to earn fees and route other Nodes Payments.
These settings apply to LND 0.12.1 releases.  The latest release still has many issues which need to be resolved.


== Watch Tower Settings ==   
== Watch Tower Settings ==   

Revision as of 07:02, 16 July 2021

Intro

    Ever since the Lightning Network has started and when people began opening channels with others they have been trying to get the most out their Node.  People have been doing this ever since computers have gotten into peoples hands.  Trying out different settings and finding out what works best.

Anyone who would love to go over a long list of config parameters which can be used could check out this Lnd GitHub page https://github.com/lightningnetwork/lnd/blob/master/sample-lnd.conf

    There are more entries then I ever thought possible, but this Wiki page is how to make adjustments to the Lightning Node environment which helps ones node to perform better.  Something which we'd all would like to happen.

The list which follows is the most common settings which Node Operators have come to agree which best suites a Node which wants to earn fees and route other Nodes Payments. These settings apply to LND 0.12.1 releases. The latest release still has many issues which need to be resolved.

Watch Tower Settings

  • wtclient.active=1
  • wtclient.sweep-fee-rate=10

Routing Optimization

  • routerrpc.apriorihopprob=0.5
  • routerrpc.aprioriweight=0.75
  • routerrpc.attemptcost=10
  • routerrpc.attemptcostppm=10
  • routerrpc.maxmchistory=100000
  • routerrpc.minrtprob=0.005
  • routerrpc.penaltyhalflife=2h0m0s
  • routerrpc.attemptcost=10
  • routerrpc.attemptcostppm=10
  • max-cltv-expiry=5000
  • max-commit-fee-rate-anchors=100

Channel Size limits

  • minchansize=5000000

Database optimizations

  • db.bolt.auto-compact=true
  • gc-canceled-invoices-on-startup=1
  • gc-canceled-invoices-on-the-fly=1
  • caches.channel-cache-size=500000


Startup Optimizations

  • sync-freelist=1
  • stagger-initial-reconnect=1

Logging

  • debuglevel=CNCT=debug,CRTR=debug,HSWC=debug,NTFN=debug,RPCS=debug

Pre 0.13 LND settings

  • protocol.anchors=true