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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
2
votes
1answer
130 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. ...
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 ...
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 ...
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 ...
2
votes
1answer
470 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
2answers
283 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-...
1
vote
1answer
548 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 ...
1
vote
1answer
85 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 ...
5
votes
1answer
413 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 ...
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
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 ...
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/...
5
votes
2answers
512 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) ...
5
votes
2answers
247 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 ...
4
votes
2answers
212 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 ...
4
votes
1answer
588 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 ...
3
votes
1answer
392 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 ...
2
votes
1answer
315 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. ...
2
votes
1answer
400 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 ...
1
vote
1answer
178 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 ...
1
vote
1answer
407 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 ...
0
votes
1answer
95 views

Do extra hop channels in a BOLT#11 invoice need to exist on chain?

According to the BOLT#11 specification, a node may add extra routing information for private channels to an invoice, where they specify the public key of the penultimate hop, along with the ...
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 ...
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?
5
votes
2answers
63 views

Why SHOULD the funding tx consume BIP 141 inputs?

In BOLT 02 we read that the funding TX should only consume segwit inputs. The sender: when creating the funding transaction: SHOULD use only BIP141 (Segregated Witness) inputs. What is the reason ...
4
votes
1answer
92 views

What differences exist between the Lightning Network implementation versus the white paper?

I'm reading the Lightning Network WP and came across SIGHASH_NOINPUT, then came across this: Lightning network: how was malleability actually fixed? Are there any other design considerations in the ...
4
votes
1answer
654 views

Qualities of “Pay to Nested Witness Key Hash”

The lightning dev tutorial mentions the np2wkh or Pay to Nested Witness Key Hash address type, and I would like to find out more about it, so far without success. Can anybody explain how they are ...
3
votes
2answers
3k views

Will lightning network efficiently support a single payment of 25 cents?

Suppose my website sells emojis for 25 cents a piece. And I get 1000 unique customers that each buy just one. Will lightning network or any other technology allow me to process these transactions ...
3
votes
1answer
106 views

Duplex micropayment channels: criticisms of Lightning and implementation

A paper from 2015 by Decker and Wattenhofer proposes an interesting design for a payment channel network, which differs from the Lightning network. The authors claim in the Related work section that ...
3
votes
1answer
321 views

Lightning network: how was malleability actually fixed?

Section 3.1.2 of the Lightning paper (Version 0.5.9.2, last modified 14 January 2016) discusses ways to fix the transaction malleability issue, which prevented Bitcoin transactions from spending UTXO ...
3
votes
1answer
147 views

Is it possible to connect to BTCPay server remote c-lightning node?

I have BTCPay server and would like to use external c-lightning node which i have funded and prefer more over BTCPay server local docker container (DC). In store configuration i see that there is ...
2
votes
1answer
405 views

How to set up a node on Testnet of Lightning network on the world map

I am currently having problems posting my node on the "World Map." I can see my node on the "Force Map" on this site. Can anyone tell me how to enter the public IP so that it can be seen on the "World ...
2
votes
2answers
71 views

download the bitcoin chain begining from a certain date

I am building a bitcoin lightning network using lnd on a separate computer this computer has less than 200G avaible and the actual blockchain is more than 220G, so I am gonna need to use prude mod ...
2
votes
3answers
80 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 ...
2
votes
1answer
90 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 ...
2
votes
2answers
460 views

Lightning close-channel transaction example?

From this article, I can understand that a punishment-based bidirectional payment channel (the type used by Lightning) would contain roughly this bitcoin script as one of the outputs: OP_IF “+7 days” ...
1
vote
1answer
125 views

How to fund a bidirectional channel in Lightning Network by two participants? (Edited)

I brought up a similar question here: (Link to question) for a payment channel (in general case and without specifying which payment channel implementation.) Since this funding channels depends on the ...
1
vote
1answer
133 views

Why is my LND node closing channels?

I have noticed when running lncli closedchannels, that I have some channels that are closed by my node (close_type: local_force_close). I am quite sure I have not initiated this manually myself. Is ...
1
vote
1answer
243 views

Is it possible to run two Lightning Network nodes on top of single Bitcoin Core node?

I would like to simultaneously run LND and Eclair nodes on top of single Bitcoin Core bitcoind node. Is it possible? I wasn't been able to pull it off so far. If possible, how to set up ZMQ and ...
1
vote
1answer
297 views

ZeroMQ support in Bitcoin Core 0.16.0 out-of-the-box?

In my previous question, I'm wondering why Lightning Networks lnd cannot talk to my Bitcoin Core bitcoind backend. The docs for lnd says it requires ZeroMQ compiled into bitcoind. Does the binary ...
1
vote
2answers
350 views

Lightning network: Are decrementing timelocks used in bi-directional channels?

I am surely not getting some part of this, but it seems to me that the paper and the video (both listed on the official Lightning website) contradict each other. In particular, the paper describes a ...
1
vote
2answers
614 views

What is happening when a channel is pending?

What is happening when a channel is pending when opened? How long does it usually take? To open a channel with a node you're already connected to you don't need to get consensus from all the other ...