Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lightning-routing]

The tag has no usage guidance.

1
vote
1answer
18 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 ...
1
vote
1answer
173 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
19 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
41 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
67 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 ...
2
votes
3answers
91 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 ...
1
vote
1answer
29 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 ...
1
vote
2answers
70 views

Clarification about lightning network

When I run a lightning node, I have to set up a lightning channel with, for example, a highly connected node. Here a first question: When I set up a lightning channel with a node, have I need to put ...
0
votes
1answer
126 views

Lightning network routing failure rate

Let's say a lightning node A wants to route a payment to a lightning node B, being A and B not directly connected.A looks for routes throughout the network, using the info about the total capacity of ...
1
vote
2answers
73 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
169 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
50 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 ...
5
votes
2answers
441 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 ...
0
votes
1answer
133 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 ...
2
votes
1answer
94 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
83 views

Routng 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
65 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 ...
4
votes
1answer
55 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 ...
0
votes
1answer
51 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 "...
1
vote
1answer
260 views

How to know earning LN routing fees

I am using c-lightning version:v0.6-182-g1851ebb. Is there a way to know how much I have earned routing fees? I found that lnd has lncli feereport command that shows earned fees. Does c-lightning have ...
1
vote
1answer
73 views

Minimum funds required in a channel in Lightning?

I have noticed that, I cannot exhaust the funds in my channel to one side in lnd. I understand this makes sense so as to have some punishment in case of fraud, but I cannot find the reason for the ...
4
votes
1answer
223 views

Non-bidirection payment channels for lightning network

I am trying to understand the technology behind LN and similar concepts. As I understand it, LN is a network of bidirectional channels, which are created with some limited capacity, within which the ...
2
votes
1answer
132 views

Make payments Lightning without Invoice?

The Lightning-RFC defines, in BOLT #11, an invoice protocol for proof-of-payment. While this is a pretty cool feature, I was wondering if it would be possible to make a payment without such invoice. ...
8
votes
1answer
475 views

Would it be possible to send money through the Lightning Network to an offline address?

My understanding is that the current Lightning Network spec requires an address receiving money to sign things with its private key - which requires the owner of that key to be online. Are there any ...
3
votes
3answers
170 views

In lightning network, is the balance publicly anounced in realtime?

In lightning network, is the balance publicly announced in Real-time? From one hand, it should be public as it crucial to the routing mechanism. But, in case that the balance might reveal some ...
3
votes
1answer
89 views

What is the purpose of the announcement_signatures message as specified by the Lightning Network RFC?

Isn't the channel_announcement message enough for channel advertisement? Why is the announcement_signatures message required? Reference BOLT #7
1
vote
2answers
512 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...) ...
5
votes
1answer
1k 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.
0
votes
1answer
240 views

Mapping the Bitcoin Lightning Network: Why not use the Blockchain?

Researching about the available routing algorithms for the Bitcoin Lightning Network, I have been reading the Flare whitepaper, and this idea/question came to mind: Since all payment channels are ...
4
votes
2answers
1k views

Is lightning network limited by the 'size' of channels?

Imagine we start with multiple channels which eventually link two individuals, Alice and Rob: (the BTC amounts is the total locked in their multisig address for their channels between each other) ...
0
votes
1answer
117 views

How does one manage the shifts of Channel Balances in the Lightning Network

I saw the video below that shows the possibility of a shift in Channel Balances. It shows that the amount that one uses to fund a channel may "disappear" if the channel is used as part of a route to ...
1
vote
1answer
203 views

How does LN solve the liquidity problem?

How do nodes in LN manage to provide 100% collateral to all the outgoing channels? I attached an example below that details my confusion about the lack of liquidity.
1
vote
0answers
51 views

what happens if one node goes down in lightning network multihop payments? [duplicate]

In a scenario where we have the following lightning payment channels: Alice <-> Bob <-> Carol <-> Dave Alice wants to pay Dave. Dave generates a payment request by selecting a random R and ...
28
votes
3answers
5k 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
2answers
176 views

Lightning Network can work, live independently from Bitcoin?

Is Lightning Network Protocol capable serve micro payment services without broadcast any transaction to blockchain?
8
votes
1answer
727 views

Lightning Route Discovery - How to know capacity in each direction?

So i have a question how routing works in the LN. I read partly through the RFC described in https://github.com/lightningnetwork/lightning-rfc but I have still this open question. I know every node ...
0
votes
1answer
245 views

Is it possible to design a hardware wallet that can allow operation of a routing Lightning node with the security level of a hardware wallet?

I'm wondering if its possible to design a hardware wallet such that it can be used for a Lightning node that routes payments for their channel partners such that their funds can never be stolen even ...
2
votes
1answer
467 views

Do relay nodes need to have money in order to relay transactions?

Imagine Alice wants to send 0.5 btc to Bob. They both open channels with Carol, a relay node that has no money. They create single funded channels each of 1 btc. Now Alice updates her channel to be 0....
0
votes
1answer
57 views

How to prevent lightening network spend two times the balance?

If I choose off-blockchain transaction in Lightning network is it any mechanism to check wether balance covers mount of transaction? So is it, or isn't it possible spend two times the same amount of ...
9
votes
1answer
156 views

Channels state validation in lightning network?

I looked into docs but didn't find any information, how do client get information about the state of intermediate channels? Since channel transactions are offchain, and only channel participants ...
3
votes
1answer
474 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 ...
3
votes
1answer
80 views

Same entity controlling separated parts of a a lightning path

Given the lightning path Alice → Bob → Carol → Dave → Emilee (with Alice being the sender and Emilee being the receiver), assume Dave and Bob to be the same entity. By pulling funds from Dave to ...
11
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 ...
9
votes
1answer
1k 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 ...