Questions tagged [lightning-routing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
28 views

How does the 'queryroutes' function in lightning's LND calculate the route fees?

I am testing my own routing implementation and for some weird reason a handful of channels reject my payment stating InsufficientFee. The scenario is A -c1-> B -c2-> C whereby Node A is ...
6
votes
1answer
275 views

What are the downsides of Hodl Invoices?

As far as I understand hodl invoices enable some interesting use cases. However, I heard that they can be detrimental to the network. Is that correct and in what way? Additionally, at a talk at the ...
2
votes
1answer
32 views

How does lnd make sure it does not reuse the same route twice for a retry after the first payment failed?

Suppose LND node A wants to send a payment to another node D. The pathfind algorithm based on Dijkstra found a route through B and C and initiates the payment. It fails, as B -> C does not have ...
7
votes
1answer
552 views

How many paths are tried on average before a payment succeeds in Lightning?

In Lightning, the sender can never be sure that a multi-hop payment will go through, as intermediary nodes don't announce the distribution of funds in their channels (only the total capacity). Is ...
3
votes
1answer
35 views

Finding paths NOT originating from you with lnd

I'm interested in finding paths from senders whose node you don't run to potential receivers. According to https://api.lightning.community/?python#queryroutes , you can do that by specifying the ...
3
votes
1answer
187 views

How does Lightning Network over TOR work?

I'm interested to understand in detail how the lightning network works over Tor. Implementations like lnd, c-lightning etc. offer an extension which allow running TOR with Lightning. I would like to ...
3
votes
1answer
45 views

How can I send a payment to myself with lightening to rebalance 2 channels?

I have an active channel with bitstamp with a balance on my side. Bitstamp has an active channel with lightening power users (lpu) with balance on their side (I checked this with lncli queryroutes ...
2
votes
2answers
345 views

Can I send/receive payments but prevent forwarding payments in Lightning Network?

Say I am using a very computationally constrained device (eg. a sensor) and it uses Lightning Network to send/receive payments. However, being computationally constrained it doesn't want to forward ...
2
votes
1answer
98 views

What are atomic multi path payments (AMPs) and why/how is it being implemented in Lightning Network?

There has been a lot of discussion and articles around how the implementation of AMP is going to benefit the routing capabilities of Lightning Network. What is the exact issue in the current ...
1
vote
1answer
35 views

Would proxying a lightning hot-wallet with a lightning cold-wallet make the hot-wallet safer?

(Edit: I realize how Mt.Gox-y the below setup sounds, but I'm coming at it from a "lightning routing problem perspective", not necessarily a straight "bitcoin security perspective"...though...those ...
3
votes
1answer
51 views

How do I find the nodeid of the node issuing a lightning network invoice?

I recently got an BOLT11 invoice from a store. For example this one: ...
2
votes
1answer
23 views

Why do Lightning packets include channel ids if forwarding is non-strict?

The onion packets in Lightning, as described in BOLT 4, include short_channel_id's of the channels along the route constructed by the sender. But according to the same spec, the forwarding is non-...
2
votes
3answers
74 views

Why can't an intermediary Lightning node take (nearly) all fees?

Consider a Lightning payment: Alice wants to pay 100 sat to Dave via two intermediary hops: Alice - Bob - Charlie - Dave. Both Bob and Charlie advertise a fee of 2 sat. Alice sends 104 sat to Bob, ...
1
vote
1answer
26 views

Can I explicitly specify a path for Lightning payment?

From what I understand, in the current Lightning implementations payments work as follows: calculate best N paths according to some metric (like, total fees); try to perform the payment through the ...
1
vote
1answer
66 views

Remote node signature for HTLC-success and HTLC-timeout transactions

According to BOLT #3, when constructing a HTLC output in the version of the local node (both received and offered HTLC), it requires that the payment to the local node is locked with CHECKMULTISIG ...
1
vote
1answer
32 views

How Lightning Networks protect itself from 'Selfish Mining'?

It is a well accepted fact that mining pools do engage in 'selfish mining' by not broadcasting a block to the network when they find a PoW solution, but building on top of that block so as to maximize ...
2
votes
1answer
39 views

What is correct way to count LN node stats

I am running a LN node. Set up monitoring to collect stats. Now i am wondering, how can i get correct conclusions about what collected information actually is. My question is about forward (...
1
vote
1answer
58 views

How do new nodes learn the topology of Lightning network?

Lightning nodes store a full network snapshots to calculate routes for outgoing payments. Nodes listen to announcements of new (public) channel openings and constantly update their local snapshots. ...
6
votes
1answer
145 views

What is the Big-O for LN bandwidth? Can anyone answer this or provide a link to a spec that is sufficient enough for us to calculate it?

When I worked at Google, if someone wanted to deploy a network application they would need to provide a document to the SREs detailing the behaviour of the application at scale in terms of Big-O. Does ...
1
vote
1answer
196 views

Why is my lighting node not routing any transaction?

I have set up a lighting node months ago using LND under the tor network. My node (Caffeine) looks correctly configured and connected to several channels but it is not routing any transaction. In the ...
2
votes
2answers
56 views

Lightning LND - Send Payment Both Ways Within Same Channel

Me and my friend are testing Raspibolt running LND 0.6 Beta. We noticed the following problem/limitation: When I opened a channel with him, I could send him payments (via invoice) without any ...
2
votes
1answer
117 views

How scalable is the current routing implementation for lightning?

What are the weaknesses we face with lightning routing currently? How many nodes do we expect it can handle now? What is being done to make it scale in the future?
0
votes
1answer
39 views

Does the `HTLC fail` routed back to sender using same path if intermediate node does not have enough capacity?

In the Lightning Network, the intermediate hop between the sender and receiver checks for possible errors(like if it has enough balance). And if there is, it sends an HTLCFail message back to the ...
0
votes
1answer
66 views

How to backup seed in lightning and give your channel to watchtower

this is followup on question #85475: I have learned in previous question that there is an automatic refund mechanism in case of force closure of a channel, except for some very rare circumstances. I ...
0
votes
2answers
86 views

Lightning - Question about force-closures of channels and its impact on recovering funds

Dear Lightning experts, someone mentioned in context with lightning channels the following things, and I would like to ask you if this statements are true, and if yes, is this a problem in a future ...
2
votes
1answer
107 views

Routing for Lightning network: was Flare implemented?

There is a 2016 paper from Bitfury on a proposed routing algorithm for LN: Flare: An Approach to Routing in Lightning Network What is the relation between it and was was actually implemented (the ...
0
votes
1answer
39 views

Lightning payments: peer versus channel (LND)

I understand that in order to be able to send a LN invoice my node should be connect to at least 1 channel. Should both nodes have an equal "stake" in the channel? Is it correct that it isn't ...
2
votes
3answers
183 views

Can someone please explain the meaning of “neutrino” within the lightning network?

Rene Pickhardt wrote the below quoted comment in another thread about whether a mobile wallet can be both a full lightning node and wallet at the same time. I have many lightning nodes running but ...
0
votes
1answer
206 views

How do custodial lightning wallets work?

I just installed and tried to use a lightning wallet (bluewallet) on an Android device. As per my understanding, when I fund my lightning wallet (This is an on-chain tx) with amount x, I open a ...
1
vote
1answer
47 views

Current simple ways to participate with a Lightning Node?

Lightning is kicking it!! I just read this article about worldwide nodes distribution https://cryptonomist.ch/en/2019/03/02/top-10-countries-bitcoin-nodes/ So, my questions are basically: 1)) what ...
1
vote
1answer
58 views

How to get all potential routes in c-lightning?

I'm trying to write some services on top of c-lightning and I need to check if certain payments hit certain nodes. lightning-cli getroute nodeid amount riskfactor This gives me a randomly ...
1
vote
1answer
31 views

How an LN node can be sure about existence / liveness of an individual path of channels?

Assuming nodes A and B do not have a direct channel between themselves and previously they could find an indirect path of channels and finalize their payment successfully. After a while, they decide ...
0
votes
1answer
58 views

Required conditions to be selected as intermediary node (Payment Service Provider) in Lightning Network?

I bring up some important questions about terminology of the Lightning Network and how to select the intermediary node as the Payment Service Provider in a routing channel: The following video (Link ...
0
votes
1answer
37 views

The scope of lightning channel fee

For the following setup: A ----(HIGH Fee rate) ---- B ---------------- C B want to charge A for more fee, he raises the fee of the channel between AB A pays to C A pays to B C pays to ...
3
votes
1answer
145 views

Is it possible to rebalance channels by sending to yourself (from a channel to an other) in c-lightning? How?

I know it is possible with LND and I don't know if it is possible with Eclair. I have tried to issue an invoice and to find a route with the same node but I got the { "code" : -1, "message" : "Could ...
3
votes
1answer
270 views

Can someone please explain how Lightning paths are working and what effect large centralized hubs have?

Can someone please explain how Lightning paths are working and what effect large centralized hubs have? Dear community, I have read some stuff about lightning and i am really interested to ...
2
votes
1answer
89 views

LND errors after upgraded to v0.5.2

Recently upgraded to the latest lnd version (following the stadicus guide) but once i restarted the client i keep getting this error when i check the logs: [ERR] LNWL: Failed to process consensus ...
0
votes
1answer
127 views

How to send a payment through a route saved in a json?

From lncli network=testnet sendtoroute -h: NAME: lncli sendtoroute - send a payment over a predefined route USAGE: lncli sendtoroute [command options] [arguments...] DESCRIPTION: Send a payment over ...
2
votes
1answer
178 views

How to send payment through a predefined route?

Attempting a payment through a predefined route using: lncli -network=testnet queryroutes 02e34c1b4c5f8e7419cf4d10e3bc9651d46dc1af68df6a7b81a24951a9192aa9c4 25000 | lncli -network=testnet sendtoroute ...
3
votes
3answers
118 views

Does a LN route with N channels at most require N-2 fee payments?

Assume we have a route n1 -> n2 -> n3 -> n4. My intuition here is that n2 charges n1 a fee and that n3 charges n2 a fee for routing payments. However, there's no fee for the last hop where n3 ...
2
votes
2answers
117 views

Are channel ids inherently linked to node ids in the Lightning protocol?

I'm wondering if it is possible to shut down my node, change my node id, but persist my channels in the Lightning protocol. Is there an inherent limitation to the protocol that prevents this from ...
-1
votes
1answer
267 views

Removing “hub-and-spoke” property of Lightning Network?

Lightning Network is based on this idea: "Near-zero fee transactions with hub-and-spoke micropayments" (Link to the article) proposed by Peter Todd. An article entitled: "Mathematical Proof That the ...
3
votes
2answers
57 views

Is there actually a dilemma of whether or not to publish channel states for LN nodes?

I've heard that there is such a dilemma for LN: if channel states were not published, the payer will not able to find any viable path, unless he takes brute-force-like probing approach (which looks ...
2
votes
1answer
59 views

In which cases could I find funds locked in a failed route?

I received an invoice from node Z and my node (A) suggests me 4 possible routes. If the first two routes fail, are there cases in which funds can get stuck in one of these routes until the HTLC ...
7
votes
2answers
735 views

What criteria should be taken into account when selecting nodes to create new lightning channels with?

Alex Bosworth recently pointed out: I see people connect to a "well connected" node on LN and by that they mean they connect to a node with lots of channels. The number of channels is actually a ...
2
votes
1answer
471 views

How is node capacity determined on 1ML.com?

I have set up a Casa node, using lnd, and opened 15 payment channels. The capacity of my channels, after almost 3 weeks, is exactly what it was when I opened the channels, leading me to believe that I ...
4
votes
1answer
198 views

Routing in Bitcoin Lightning Network

Here is all we can find in the Lightning Network whitepaper about payment routing process that it is completely unclear to me (at least it is not enough to know what happens exactly at time of finding ...
0
votes
1answer
105 views

Why do we need a “routing” process in Lightning Network?

If I am wrong, please correct me. If we simplify Lightning Network, it seems to work similar to this simple unidirectional payment channel between two parties (although, Lightning Network is a ...
0
votes
1answer
71 views

Is routing approach of Bitcoin Lighning Network “decentralized” and “trust-less”?

From the Bitcoin Lightning Network: it is possible to find a path across the network similar to routing packets on the internet. Is routing approach of Bitcoin Lighning Network performed in a "...
5
votes
1answer
139 views

Why is last channel's expiry different in Lightning Network Routes?

Both in the Basic of Lightning Technology (BOLT) documents, and in the specification of lnd, there is a different treatment for the last channel in a route. In BOLT#2 it refers to a variable ...