25,000 sats Question: How are routes determined?
avatar for sapphire-tarantula-of-greatness
11 months ago by
avatar for sapphire-tarantula-of-greatness sapphire-tarantula-of-greatness1.5k sats wrote:

I am wondering, how do nodes determine what route to take on the network? What factors go into it? Some routes might be more expensive, but more reliable. Others might be cheaper, but flaky. Some might be more private, as they have lots of hops, while others are less private and have fewer hops. From all these choices, how do they decide what is the right rate and number of hops?

ADD INCENTIVE   ADD COMMENTlink written 11 months ago by sapphire-tarantula-of-greatness1.5k sats
avatar for magic-loon-of-beauty (not signed)
10 months ago by
  • c-lighting uses Dijkstra to find the shortest path according to SLP 98
  • Rusty Russell also gives some explanation and references about routing for privacy in SLP 134
ADD COMMENTlink written 10 months ago by magic-loon-of-beauty (not signed)55k sats

Add your answer


  • Answers should ONLY be used to respond to the original question at the top of this page! Use the ADD COMMENT or ADD REPLY buttons above to respond to someone, ask for clarifications, request more details, etc.
  • Maximum answer length is 500 characters due to limits on Lightning invoice size. After posting you can use comments to expand.
  • Incentive is awarded to signed answers only


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by ln-central open soruce Q&A software running code change a5ae7af8 which was committed 18 months ago