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
61 votes
3 answers
20k 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 ...
user avatar
  • 64.6k
52 votes
1 answer
15k 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'...
user avatar
  • 64.6k
10 votes
1 answer
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 ...
user avatar
  • 64.6k
8 votes
1 answer
604 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?
user avatar
  • 64.6k
1 vote
1 answer
226 views

1ML shows larger number of nodes comparing to other lightning network explorers

I found that 1ML displays almost double the number of nodes comparing to other lightning network explorers. I think 1ML does not provide the datasource but are you able to guess about the reason of ...
user avatar
  • 1,825
29 votes
3 answers
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 ...
user avatar
  • 64.6k
19 votes
2 answers
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 ...
user avatar
  • 64.6k
9 votes
2 answers
4k 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 ...
user avatar
  • 5,124
8 votes
1 answer
3k 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 ...
user avatar
  • 64.6k
11 votes
1 answer
7k 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/...
user avatar
11 votes
1 answer
2k 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 ...
user avatar
  • 1,501
2 votes
1 answer
238 views

Extract lightning network funding transactions with python bitcoin blockchain parser lib

My ultimate goal is to parse funding transactions (as well as channel closes in a later step) from the blockchain. In order to do so I wanted to start with a funding transaction and disect it. ...
user avatar
2 votes
1 answer
786 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 ...
user avatar
  • 21
2 votes
2 answers
552 views

How to fund a bidirectional payment channel?

Assuming two users want to create a bidirectional channel between themselves such that user_1 wants to pay 2 BTC to user_2 at the end and he divides this amount into 10 micro-payment (each micro-...
user avatar
  • 1,102
1 vote
1 answer
411 views

Does, or will, Bitcoin Core support Lightning?

I vaguely understand what Lightning is, and would like to take advantage of it. However, actually using it seems extremely "fuzzy". If it requires some separate software to be trusted, ...
user avatar
6 votes
2 answers
3k 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 ...
user avatar
  • 1,501
11 votes
1 answer
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 ...
user avatar
  • 253
10 votes
2 answers
759 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 ...
user avatar
  • 213
3 votes
1 answer
284 views

Why does every HTLC in a commitment transaction require its own signature?

From BOLT 02 we can learn When a node has changes for the remote commitment, it can apply them, sign the resulting transaction (as defined in BOLT #3), and send a commitment_signed message. 1. type: ...
user avatar
3 votes
3 answers
984 views

Can a channel be closed while the funding tx is still stuck in the mempool?

I have attempted to open a channel recently, but accidentally set the fee for the funding transaction too low. Now the funding tx has been stuck in the mempool for over a week. Is there some way to ...
user avatar
3 votes
1 answer
544 views

Is there a solution to paying high fees when opening and closing lightning channels once we hit a fee only market?

Paying several hundred dollars to open and close a lightning channel seems uneconomical. This is a common argument against lightning by big blockers, I’m yet to read a valid argument against this.
user avatar
2 votes
2 answers
172 views

Bitcoin transactions associated with layer 2 projects

Is there any website which tracks the number of Bitcoin transactions, fees and amounts associated with layer 2 projects (Lightning Network, Liquid, Rootstock)? I am curious about this because if a ...
user avatar
1 vote
1 answer
64 views

What are all the payment channels implementations?

I know the Lightning Network (which Electrum wallet experimentally supports) is an implementation of a payment channel, but Mastering Bitcoin (2nd ed.) ch. 12, § "Routed Payment Channels (...
user avatar
  • 4,327
1 vote
1 answer
572 views

Clarification of lightning network example (putting funds into lightning)

I'm checking How does the Lightning network work in simple terms? answer example: 1) Putting funds into Lightning We both send 0.5 BTC into a shared 2-of-2 multisig address. This requires a ...
user avatar
  • 1,192
-1 votes
2 answers
255 views

How exactly do I use Lightning Network? Does it even actually exist?

http://lightning.network/how-it-works/ Where is the download button for the official, highly trusted CLI application which works with Bitcoin Core? So that I can actually make Lightning transactions? ...
user avatar
-1 votes
1 answer
273 views

Why doesn't Bitcoin-Core support Lightning Network? [closed]

I first learned about Bitcoin in 2009. Ever since, I've (very) slowly pieced together information, while shaking off 99% disinformation, about how Bitcoin works. I run a Bitcoin Core fullnode and have ...
user avatar
14 votes
2 answers
4k 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 ...
user avatar
  • 572
6 votes
1 answer
460 views

How are Lightning network, duplex channels, and micropayment channels related?

I'm new to Bitcoin and just became familiar with Micropayment channels. But how exactly do they relate to: Lightning network Duplex Micropayment Channels ? I am reading about these but can't find a ...
user avatar
  • 651
7 votes
1 answer
2k views

When opening a LN channel using LND, what does 'push-amt' do?

I set up Lightning node (LND) and wanted to receive a payment. Autopilot for managing the channels always creates channels w/ zero remote balance, thus nobody can route a payment to/through my node. ...
user avatar
  • 193
9 votes
2 answers
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 ...
user avatar
9 votes
1 answer
621 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 ...
user avatar
8 votes
2 answers
859 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 ...
user avatar
7 votes
3 answers
2k views

How to manually rebalance Lightning Network channels?

I'm running an LND node that has a few dozen channels open to various relevant vendors/routing nodes. There are a couple specific channels that are open with stores that are getting used with most of ...
user avatar
  • 73
5 votes
2 answers
1k views

Opening Lightning network channel: who is paying?

When opening a lightning network channel between two parties, which of the following is true: 1) They must both pay a fee to open the channel 2) They might both pay a fee to open the channel 3) ...
user avatar
  • 329
5 votes
2 answers
2k views

Will "Taproot" replace Lightning Network?

Can somebody explain to me if Taproot will fix the issues that Lightning Network solves, without the Lightning Network? That is, near-zero fees, privacy and fast settlements? Will Taproot allow me to ...
user avatar
5 votes
2 answers
362 views

Do the channel balances get publicly announced in real-time on Lightning Network?

In Lightning Network, is the balance publicly announced in real-time? On the one hand, it should be public as it is crucial to the routing mechanism. But, in case that the balance might reveal some ...
user avatar
5 votes
1 answer
741 views

Lightning network and lightweight clients

How will the lightning network handle lightweight clients? Do I understand it correctly that opening a payment channel require writing on the blockchain to protect against double-spend? The integrity ...
user avatar
  • 53
4 votes
2 answers
588 views

Obtaining Lightning network graph data

I was wondering if it is possible for me to obtain data about the Lightning network mainnet, particularly the nodes and the edges (channels) in the network. I know that the graph is visualized in ...
user avatar
4 votes
1 answer
952 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 ...
user avatar
  • 6,978
3 votes
1 answer
301 views

Get public or private key from address with C-lightning

I'm studying Lightning network and I use c-lightning. I can Get a new address with newaddr method, but I can't find private key. My address is bcrt1qmckts70jsq2u5886lgcq2yn7xjmp97t09zlrg, how can I ...
user avatar
3 votes
2 answers
248 views

What are some arguments to why the bitcoin lightning network isn't scalable to billions of users?

There are arguments to why the current version of the bitcoin lightning network isn't scalable. What are some of the main arguments of why that is? Lightning can work in a small country like El ...
user avatar
3 votes
1 answer
581 views

Lightning Onion Routing vs TOR

From what I can gather BOLT #4 is applying similar methods, such as obscuring previous and future hops from intermediate nodes, to the TOR network for routing payments across the Lightning network. ...
user avatar
3 votes
1 answer
1k views

Full node vs lightning node

What is the difference between a full node and a lightning (network) node? If a lightning node, that is not a full node, opens a payment channel with another lightning node, how can the first peer ...
user avatar
2 votes
3 answers
154 views

Why can’t lightning tx’s be signed with sighash single to allow for fee updates?

Are out-of-band fee payments to confirm a lightning closing transaction the only way to manage a situation where the sat/kw of a previously signed commitment tx are simply below market? If additional ...
user avatar
  • 2,433
2 votes
2 answers
479 views

Lightning Network: How was the maximum allowed HTLCs in flight computed?

The maximum acceptable max_accepted_htlcs (maximum number of HTLCs forwarded concurrently) is specified by the BOLTS as being 483. How was this value chosen ?
user avatar
2 votes
2 answers
156 views

Lightning - why are commitment transactions supposed to use different keys

In the paper BIP32 and deterministic key derivation are mentioned. But why given that two peers directly exchange messages (i.e., there is no need to obscure anything)? Alice always exchanges state ...
user avatar
  • 498
2 votes
1 answer
448 views

Are lightweight LN wallets vulnerable to transaction withholding?

As far as I know, LN requires the user to watch the blockchain in order to perform penalty in time. However, running full node is probably a heavy burden to some users, especially to mobile phones. I ...
user avatar
1 vote
1 answer
592 views

Lightning network explaination (bidirectional channel funded by one party)

Let's say Alice and Bob want a bidirectional lightning channel with common 2-2 multisig address C. Alice is the only one putting funds in, say 100BTC. They agree on nLock of these funds to be 30 days ...
user avatar
  • 1,192
1 vote
1 answer
71 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 ...
user avatar
1 vote
1 answer
206 views

What happens if R is not revealed by one of Lightning Network nodes? (Payment cancelation)

Let's say we have route of 3 hops A -> B -> C -> D (A pays D). And in the middle of payment (revealing secret R stage) node C disappear from network. In this case B will be not able to finalise ...
user avatar
  • 113