Questions tagged [lightning-routing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
526 views

unable to route payment to destination: TemporaryChannelFailure

Keep getting this error following attempting to pay an invoice. root@ubuntu-s-1vcpu-2gb-nyc3-01:~# lncli --network=testnet payinvoice ...
0
votes
1answer
173 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 ...
3
votes
1answer
23 views

Difference between capacity and max_htlc in Lightning Network?

What is the difference between capacity and max_htlc in the routing of payments in the network?
1
vote
0answers
49 views

Lightning Network node collusion

I' m learning about Bitcoin and LN enjoying Antonopoulos's excellent "Mastering Bitcoin" book I stumbled upon Figure#7 in Chapter 12 https://github.com/bitcoinbook/bitcoinbook/blob/develop/...
1
vote
1answer
188 views

Reuse of payment hash in Lightning Network

Suppose there exist two such payment transfer request: A transfers 1 msat to R via A->B->C->R and S transfers 5 msat to R via S->B->C->R. Let the two HTLCs be formed across both the paths ...
3
votes
1answer
88 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 ...
6
votes
1answer
3k views

How does lnd's autopilot feature work?

Autopilot automatically connects to peers in order to establish a p2p network. I didn't find however a complete explanation of its motivation and logic.
9
votes
2answers
1k 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 ...
3
votes
1answer
67 views

lnd stoped routing - unable to update fee rate

I used to have about 5 routings per day. Now, since three days I don't have any routing. In my lnd.log I find lines like this: grep ERR lnd.log 2021-09-19 22:40:53.187 [ERR] HSWC: ChannelLink(700510:...
1
vote
1answer
85 views

Where are my lightning routing fees stored (lnd), when do they get payed out?

I watch my lightning node (lnd) routing some amounts. And with lncli feereport I see some sums, let's say 700 sats for this week. But where are those sats? How can I lookup the accumulated routing ...
1
vote
3answers
2k views

My lnd node hasn't routed any payments (1 week + since initial setup)

So I finally setup a lightning node (lnd) and according to "feereport" I haven't routed any payments (no fees collected). I have used my node to send payments (yalls, satoshis.place, blockstream...) ...
2
votes
2answers
229 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 ...
2
votes
0answers
36 views

lightning nodes cannot find route

I have two lightning nodes, Bob and Charlie (using bitcoind backend with LND). They both have an open and funded channel with this testnet faucet: https://faucet.lightning.community/ Both nodes have a ...
4
votes
0answers
69 views

How can I increase the routing my 'small' lighting node performs?

I know this question has been asked a lot. However I am not able to grasp the correct approach to address this. Let me give you the context: I spun up an LND node to start experimenting and ...
1
vote
1answer
158 views

How can I determine the reason for a failed routing on c-lightning

I am running a c-lightning node (v0.8.2). I am routing a payment every few days. However, I realized that dozens of payments every day fail, many of them fail locally (I see the status 'local_failed' ...
0
votes
1answer
37 views

Is it possible to programmatically or preemptively deny any/all open_channel Lightning messages coming into your node?

If so, that would make it possible for that same node to have 1 very well funded inbound channel with only 1 other node that they also own and price gouge fees to route payment to them through this ...
2
votes
3answers
129 views

Is there some way to add a third party authorizer to (or by) a lightning network transaction?

I'm not asking for "multisig on the lightning network", but I'm more curious about how one would set up shared control over lightning network transactions in general. Imagine we don't have a ...
2
votes
1answer
121 views

What exactly are route hints?

In the documentation for LND's addInvoice rpc call there's a field for something called route_hints which are described as: Route hints that can each be individually used to assist in reaching the ...
3
votes
1answer
95 views

Would a min_fee setting for Lightning channels make sense?

What is a min_fee? Having a min_fee means changing the fee calculation to max(min_fee, fee_rate * amt), potentially replacing the base_fee. My reasoning behind this is that it prevents 0-fee payments –...
7
votes
1answer
311 views

Can PTLCs and HTLCs be mixed along a route?

When PTLCs get introduced on the Lightning Network, do all hops along a route need to use either HTLCs or PTLCs, or would it be possible to create a route where some nodes use PTLCs and some use HTLCs?...
-1
votes
1answer
28 views

Would restricting channels to a maximum make LN more decentralized?

Currently LN seems a bit centralized - few central, well funded nodes seem to route transactions and make profits. I was wondering if limiting the number of channels a node can open to a certain max ...
5
votes
1answer
262 views

What are the implications of min_htlc_size in "Pickhardt Payments" on the Lightning Network?

I've read the paper "Optimally Reliable & Cheap Payment Flows on the Lightning Network" by Rene Pickhardt & Stefan Richter and I'm tempted to assume the answer to my question, but I ...
0
votes
0answers
19 views

Transfer Outbound to Inbound liquidity - Umbrell node

I have an Umbrell node, and few channels open with outbound liquidity as I don't know how to open inbound liquidity. I want to close one of my outbound channel that is mostly offline and transfer this ...
3
votes
1answer
275 views

Why was the base_fee for the routing fee calculation of the Lightning Network included?

Currently and as defined by BOLT 07 on the Lightning Network, the fees for forwarding an HTLC of amount amount_to_forward are computed as: fee_base_msat + amount_to_forward * ...
2
votes
1answer
57 views

Lightning Network Channels - Should we have 1 channel or 2 channels per peer?

In short I just wanted to ask for clarification, is it optimal to open two channels with each peer e.g, Or it is better to have one channel e.g, I look forward to your advice/response. Sincerely,
0
votes
1answer
79 views

What are the different kinds of Lightning routing nodes?

I understand that there are end users at the edge of the network (typically with private channels) and routing nodes (with public channels) doing the routing of payments. What are the different kinds ...
1
vote
1answer
45 views

Find Lightning node for channel creation based on amount and route

Is there a tool to identify a Lightning node that will accept a channel open request and that matches the two conditions below? Accepts channel amounts of less than or equal to X. Can route payments, ...
6
votes
2answers
777 views

In the Lightning Network, what happens if a "middle node" suddenly goes dormant for a long while?

I think I have a general understanding of how the Lightning Network works. However, I was having a little difficulty in understanding what happens when a node in the middle of a "path" suddenly goes ...
2
votes
1answer
95 views

How much privacy does Lightning actually have?

I can't find any information on what information is actually contained within a lightning transaction. Lets say Alice wants to pay Bob on lightning and routes through R1, R2, R3 in the following order ...
2
votes
1answer
694 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 ...
2
votes
0answers
73 views

Circular rebalance through 1 of 7 channels always times out

I have the following 8 channels open I am able to do a circular rebalance through the first 6 as expected The bottom 2 channels are to the same node Every time I try to do a circular rebalance (tried ...
3
votes
2answers
97 views

Why do multihop LN payments start settling from the recipient's end?

In HTLC, after all the parties have locked their funds in the contract, claiming payment happens in a reverse way, starting with the receiver who reveals the preimage of the corresponding payment hash....
2
votes
2answers
201 views

Should the nodes of a channel have the same Time Lock Delta?

Consider this channel https://1ml.com/channel/612829298476056576 : Node 1: Caffeine Time Lock Delta: 10 Node 2: HODLcat.com Time Lock Delta: 144 How is an HTLC passing through this ...
14
votes
3answers
2k views

Is centralization in the Lightning network inevitable? Why (not)?

Especially keeping in mind the possibility of single-funded channels (see Tadge's Google Doc Slides), buying from an exchange and concurrently opening a payment channel on the Lightning network would ...
8
votes
2answers
474 views

For lightning network, can I surround myself with a bunch of nodes to increase anonymity?

Let's say I'm on a Lightning Network. Can I create a bunch of nodes, and do all my spending through those nodes? Can you hide the fact that these nodes are likely controlled by the same person? How ...
3
votes
0answers
41 views

What is "Link-Level Multiplexing"?

In a discussion about private channels, Conner Fromknecht mentioned a concept called Link-Level Multiplexing. What is this and what is it useful for? How does it work?
10
votes
1answer
2k views

How is a node in the middle prohibited from keeping the money in a routed Payment in Lightning network?

It is my understanding that Lightning is to scale with users having only few payment channels by leveraging the six degrees of separation theory to facilitate payment routing. I understand how onion ...
3
votes
1answer
505 views

Is Lightning Network vulnerable to sybil attacks?

A dialogue partner of mine claimed that Lightning Network is vulnerable to sybil attacks. He stated that LN needed explicit identities in order to support the "routing" which would cause ending up ...
4
votes
1answer
66 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-...
3
votes
1answer
118 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
182 views

Transaction size limit across a single path in a Lightning Network and fee earned

Given MPP is included in the current version of lnd, an arbitrarily large transaction can be processed in the network. What is the transaction size limit across a single path? Is it still bounded to 0....
3
votes
0answers
690 views

LND Port 9735 still closed after setting up port forwarding and firewall

I have set up my bitcoin/lnd full node and would like to have it run as a routing node for the network. So I have opened my port 9735 from the router and allowed access to it in my firewall (ufw on ...
3
votes
2answers
244 views

What is the rationale for the Lightning network's path length limit (20 hops)?

A sender in the Lightning network can choose a path with up to 20 intermediaries (BOLT4). Tor is another network that uses onion routing for anonymity. However, in Tor all paths have 3 intermediaries,...
3
votes
1answer
263 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 ...
8
votes
1answer
434 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 ...
8
votes
1answer
599 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
1k 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 ...
29
votes
3answers
6k views

How are paths found in Lightning Network?

I understand now how multihop payments can work in LN, but how do we discover payment paths in Lightning Network in the first place? Obviously you'd need to take into account the available capacity ...
3
votes
1answer
198 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
1answer
352 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 ...