We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [lightning-network]

Proposed payment system leveraging payment channels which allow re-negotiation of balances that finally get executed on the Bitcoin blockchain.

Filter by
Sorted by
Tagged with
53
votes
3answers
18k views

How does the Lightning network work in simple terms?

Could you please describe how the Lightning network is supposed to work? How does it scale better than pure blockchain transactions? What are the advantages and disadvantages of Lightning Network ...
44
votes
1answer
13k views

What are Channel Factories and how do they work?

One of the open research questions for Lightning Network is that it will take a massive amount of on-chain transactions to create enough payment channels for all the Lightning Network users. Lately, I'...
27
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 ...
18
votes
2answers
2k views

What security weaknesses result from using off chain solutions?

What type of security weaknesses are potentially created by using off chain solutions (such as the lightning network) for a portion of Bitcoin network traffic?
15
votes
2answers
1k views

What are the trade-offs between transacting on Lightning Network and Bitcoin mainchain?

Lightning network's first prototype code is online, so it's about time we learn more about what it is. (At least I wish some people would…) What are the expected trade-offs of Lightning Network to ...
13
votes
2answers
3k views

Is Lightning Network a risk for Bitcoin security since it reduces miner fees?

does LN represent a risk for the Bitcoin ecosystem since it will reduce miner fees (the only income they'll have in a post-btc-minting world) and displace them into second layers? I couldn't find any ...
12
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 ...
11
votes
1answer
927 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 ...
10
votes
3answers
3k views

How are fees determined in the Lightning Network?

How are fees determined in the Lightning Network? For transactions that occur on chain, fees are determined by the availability or demand for space in node's mempools. How are they determined in the ...
10
votes
2answers
554 views

Transaction overriding in lightning network

I'm reading the lightning network whitepaper, and at some point it states this: Therefore, it is possible in bitcoin to devise a bitcoin script whereby all old transactions are invalidated, and ...
10
votes
1answer
1k views

In Lightning Network, what are the proposals for solutions to transfers to offline end users?

Basic examples in LN always mention payments from an online end user to other online end user. But let's say we want to send a micropayment donation to a blog that does not have an always online LN ...
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 ...
9
votes
1answer
2k views

When closing the channel for LN - how to calculate the fee for the blockchain transaction?

To be clear: Following is not about fees in Lightning Network. Following is about fees on blockchain for transaction which closes the channel in LN. Channel closing transaction can be created months ...
9
votes
2answers
3k views

Do parties in a Lightning Network channel need to be online?

I'm thinking of a scenario where users on mobile devices using a LN client will rarely be online. Let's say Alice opens a channel with Bob and they make 10 LN transactions. After Alice has received ...
9
votes
1answer
531 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 ...
9
votes
1answer
161 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 ...
8
votes
1answer
469 views

What is the Lightning Network proposal? What problem is it trying to solve?

We already have a few questions about technical details of Lightning network, however, … What is the Lightning network proposal in the first place? What problem is it aiming to solve?
8
votes
2answers
2k views

What makes millisatoshi real?

In the Lightning Network, it's possible to pay in units a thousandth of a satoshi, a millisatoshi. But you can't redeem them directly on the main chain when closing a channel, it will be subject to a ...
8
votes
3answers
1k views

Is there incentive for those who run lightning nodes?

This is likely very much a noob question, but I would like to know if there are fees or incentives for those who are running a lightning node? Of course, other than having access to lightning network?
8
votes
1answer
1k views

How does Lightning transaction revocation work?

I've been reading about the Lightning Network, and I feel like I alllllmost understand it, but I can't quite figure out how the revocation transactions are designed so user A can claim the channel's ...
8
votes
1answer
352 views

Lightning Network scaling alternatives?

I'm really looking forward to the Lightning Network and all the efforts being put in by Blockchain.info, Blockstream, and others. But I was wondering if there aren't other options for decentralised ...
8
votes
1answer
1k views

What is the timeline for Lightning Network's availability?

I have been reading a lot about this Lightning Network and what it does. But what I still don't know is if this Lightning Network is already being used for Bitcoin or when Bitcoin will start to use it ...
8
votes
2answers
175 views

How to recover funds from a force-closed Lnd lightning channel?

I lost my Lnd channel backup in a boating accident, but I still have the mnemonic. I had one freshly opened channel to my own c-lightning node which has never been used. I force closed the channel ...
7
votes
1answer
3k views

What is a millisatoshi? I thought satoshi is the smallest unit?

I encountered 'millisatoshi' (msat) while browsing Lightning Network..., see screenshoot below: And subsequently I found it mentioned here: https://github.com/ElementsProject/lightning/blob/master/...
7
votes
2answers
733 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 ...
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 ...
7
votes
2answers
791 views

Running lightning in prune mode

I am running lightning with the LND implementation and a full node. Nevertheless, I heard that it is possible to use Lighting in pruned mode. How is this possible? I read in the LND install ...
7
votes
2answers
2k views

When running a Lightning Network hub, who pays the fees when a transaction has to be broadcast to the blockchain?

I've been educating myself on how the Lightning Network protocol works, and I have some questions. Let's say that a user sends a small payment to someone and it makes multiple hops through the ...
7
votes
1answer
908 views

How do I restore a Lightning Node with active channels that has crashed causing data loss? Is it similar to restoring a Bitcoin wallet?

If my lightning node crashes after receiving payments (but before I have closed the channel) can I recover my funds? What happens if I do not have backups of all the channel updates? Is the ...
7
votes
2answers
433 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 ...
7
votes
0answers
243 views

Why did the lightning network implement a gossip protocol?

As pointed out by many lightning developers in the past (e.g. Rusty's 1 million channel challenge) the gossip protocol is quite noisy and a part of the BOLTs causing many engineering challenges. ...
6
votes
3answers
1k views

“HTLCs don't work for micropayments”?

I read this tweet by Tadge Dryja recently. What exactly did he mean? Is this an issue? If so, is this issue fixable?
6
votes
3answers
1k views

Does a segwit based side chain like the lightning network allow for fractional reserve?

I'm confused. I've watched the video The Lightning Network Explained (Litecoin/Bitcoin), and read the following comments by Craig Wright: This occurs because schemes such as segregated witness ...
6
votes
1answer
127 views

Why is the length of the transport messages on the lightning network encrypted?

From BOLT 08 we can see that every message is sent in the following way: 2 byte: length 16 byte: MAC [length] byte: Encrypted message 16 byte: MAC In reality these messages will be send over TCP/...
6
votes
2answers
252 views

Does anyone get custodial control of your funds when using Lightning Network?

When I open a payment channel on Lightning Network, do I need to subject my funds to custodial control of another party? Is there a counterparty risk in Lightning Network?
6
votes
3answers
447 views

Why was transaction malleability fix required for Lightning network?

Transaction malleability is that TXID can be changed modifying the signature slightly without the private key. To implement Lightning Network, it was required to fix the malleability. However, I ...
6
votes
1answer
274 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 ...
6
votes
1answer
783 views

Can two parties accidentally pay the same lightning network invoice simultaneously?

If multiple Lightning nodes attempt to pay the same invoice (using the same payment request), is it absolutely necessary that no more than one of the attempts will succeed (that is, only one payer ...
6
votes
1answer
213 views

Why do lightning invoices expire?

I'm considering the development of a lightning app, and I'm trying to make it non custodial. I was thinking on pre-generating invoices for all users every x time to make things simpler. To do that I'...
6
votes
4answers
2k views

Lightning mainnet peer list?

I just set up c-lightning on mainnet and I'd like to open a channel but I can't find a list of node ids and ip addresses. Does anyone know where I can find this?
6
votes
2answers
276 views

How to convert channel id from c-lightning to lnd?

Sorry for the dumb question, but I'm not very good in lightning network... So I have two daemons: c-lightning and LND. Channels from the c-lightning comes like this 505580:1917:1; Channels from the ...
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 ...
6
votes
1answer
77 views

Can the lightning network be subject to DoS attacks due to message flooding?

In the current implementations of the Lightning network protocol (c-lightning, eclair and lnd), is there any check that stops spamming/flooding of channel_announcement, mode_announcement or ...
6
votes
2answers
2k views

Is it possible to add funds to an already-open lightning network channel?

I would think that user A on a channel should be able to add bitcoins to a channel using the following steps: Create a transaction sending more money into the main multi-sig account Create a refund ...
6
votes
2answers
679 views

How do “trustless third-party watchers” work in Lightning Network?

The main point with LN is the need to monitor the blockchain. The reason for this is to detect if the counterparty misbehaves by publishing an old channel state to the blockchain. For a node running ...
6
votes
2answers
1k views

Receiving payment in Lightning Network is a big problem?

There are some requirements to receive Lightning funds. According to here, Nothing can be received immediately after creating a new payment channel, as ‘room’ for incoming funds has to be made by ...
6
votes
1answer
562 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 ...
5
votes
1answer
2k views

What is a hash pre-image as it is used for the breach remedy?

Until this afternoon I thought the anti-cheat transactions or breach remedies built on the exit-transaction of the counterparty. Apparently, they build on something called a "hash pre-image". What is ...
5
votes
2answers
256 views

Some questions about Lightning and Tor

Currently there is a wave of articles claiming the Lightning Network is shrinking. If you look at official statistics, like on p2sh.info, this seems true. I was told that some of it might be an ...
5
votes
1answer
426 views

In a Lightning Network who commits to the blockchain the final transaction?

So let's imagine a Lightning Network made up of thousand of nodes. Transactions are routed until the moment comes where all the channels need to be closed and commited I presume. Which node actually ...