Stack Exchange Network

Stack Exchange network consists of 174 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-network]

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

1
vote
3answers
50 views

Lightning network channel capacities and gambling site jackpot payouts

Let's say I want to make some kind of gambling app: The user creates a channel with the business. (local_amt = 1000, remote_amt = 0, capacity = 1000) User bets a few times and wins a jackpot of 5000 ...
8
votes
2answers
1k 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 ...
1
vote
1answer
35 views

Limits on lightning channels and payments

What are the upper and lower limits on Bitcoin Lightning channel balances and transactions, and where are these limits defined?
1
vote
1answer
47 views

In which cases I could find funds locked in a failed route?

I received an invoice from node Z and my node (A) suggests me 4 possible routes. If the first two routes fail, are there cases in which funds get stuck into one of these routes until the HTLC expires?...
1
vote
2answers
75 views

Can a Lightning channel's initial BTC value be updated?

When an LN channel is created, it is funded with an initial BTC amount by at least one one peer. But given that most of the whole idea of LN is the existence of long running channels, I wonder if this ...
0
votes
1answer
37 views

Why would apps use Lightning over an on-chain TX?

I'm trying to understand software orientated payment use-cases for Lightning payments. Given a web app that accepted BTC payments charged in Satoshi for a service - watching videos for example; why ...
5
votes
2answers
427 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 ...
1
vote
1answer
34 views

Can I use lightning for ERC-20 (Ethereum coins)

Just finished setting up my lightnig node. It is awesome!! Does anybody knows an implementation or documentation that explains how to make it work on rinkeby or ethereum mainnet?
4
votes
1answer
151 views

Lightning Network: asymmetry in the information tracked by each participant?

In following paper, written by Christian Decker et al., there is a paragraph that is not clear to me. eltoo: A Simple Layer2 Protocol for Bitcoin "The central idea of Lightning is to invalidate ...
2
votes
1answer
66 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 ...
0
votes
1answer
61 views

Ownership of private keys in the Lightning Network

My question refers to the technical side: who is holding the private keys if a third party is using my lightning node to participate in the Lightning Network payment channel ? Thank you
1
vote
0answers
32 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
78 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
38 views

How is the recipient address for closing a Lightning Channel derived?

I've recently opened a payment channel in the Bitcoin testnet LN. The funding TX ded9fc8b1ee5506037e057a37057a598c362c4b698a40076e75ea88e2ae8a2a2 decoded: { "txid": "...
1
vote
1answer
156 views

To create a channel on the Lightning Network, do you have to execute an actual transaction?

I'm trying to better understand the Lightning Network. I was reading this article -- https://medium.com/coinmonks/lightning-network-how-does-it-work-ceeeda8ad21e . My question is, when two parties ...
1
vote
2answers
41 views

How to determine how many transactions are being processed by the lightning network?

Is there a way to get an estimation of how many transactions are being currently (last hour or last 24h) processed by the lightning network? And by a specific node?
2
votes
1answer
94 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. ...
0
votes
1answer
35 views

What is the relation between a Hash Time Lock Contract(HTLC) and a Commitment transaction?

I want to know about what happens to the commitment transactions as the HTLC's are sent and cleared along to peers in a route.
0
votes
1answer
70 views

c-lightning determine channel capacity

I'm using c-lightning to experiment with sending micropayments backwards and forwards between 2 separate nodes. One area I am experiencing great difficulty with is being able to generate an invoice ...
0
votes
2answers
28 views

How to check version number of lnd?

New lnd version came out recently, but I'm not sure which version I'm running. How can you check?
0
votes
1answer
62 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 ...
1
vote
1answer
36 views

Order of Exchanging Revocation Keys during Lightning Transactions

How do Alice and Bob share their ephemeral private keys simultaneously? If they don't, and let's say Alice first sends Bob her private key. At this point, Bob can broadcast his current commitment ...
0
votes
1answer
49 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 "...
2
votes
1answer
58 views

lightning-cli list only my channels

After connecting to a busy lighnting node such as 03c856d2dbec7454c48f311031f06bb99e3ca1ab15a9b9b35de14e139aa663b463@testnet-lnd.htlc.me the number of channels my own lightning node knows about ...
1
vote
0answers
28 views

library for light-weight wallet : btcsuite or BitcoinJ [closed]

Do btcsuite + Neutrino(Lightning-lab) together provide sufficient foundation for light client capable to service onchain transactions (not multisig & not related to Payment Channels)? Or is it ...
0
votes
2answers
58 views

Lighting Network transaction

I have never used LN, but read about it and I am confused about one thing, if I am send BTC through channel, then receiver exactly know who send this and can in some way check how much sender's ...
0
votes
1answer
41 views

Lightning payment between two nodes

I'm struggling to work out how I can setup a channel between two lightning nodes so that I can send a single payment from one node to the other. I have set up two separate c-lightning nodes connected ...
0
votes
1answer
50 views

How do nodes communicate over Lightning network?

I read the following article and watched below video. https://medium.com/@melik_87377/lightning-network-enables-unicast-transactions-in-bitcoin-lightning-is-bitcoins-tcp-ip-stack-8ec1d42c14f5 https:/...
1
vote
1answer
51 views

lncli pendingchannels output: difference between `pending_closing_channels` and `waiting_close_channels`

When plotting lncli pendingchannels, two of the outputs are oddly similar: pending_closing_channels and waiting_close_channels. I have only seen my closed channels either as the output closedchannels ...
4
votes
1answer
54 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
118 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 ...
0
votes
1answer
179 views

How to create bidirectional channels using LND?

I created a channel with following command. But its not bidirectional by default. lncli openchannel --node_key=02cdf83ef8e45908b1092125d25c68dcec7751ca8d39f557775cd842e5bc127469 --local_amt=390000 ...
1
vote
1answer
25 views

Purpose of the LN transaction description

According to Bolt 11, an invoice may contain a short description. However, what I fail to understand is who is sending this information to whom. Since the invoice is usually generated by the payee, I'...
1
vote
1answer
70 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
46 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 ...
2
votes
1answer
244 views

How can I open channels with Eclair?

I have set up a Bitcoin Core wallet with 0.3 bitcoins in it and an Eclair lightning node. The rpc userid and password is set plus all the other settings I am supposed to have, hopefully. No problems ...
1
vote
1answer
101 views

How does the lightning network handle changing IPs?

What happens if suddenly my IP/Onion address changes? Will that be a problem for the lightning network? Or could my node just simply update the network graph as long as its public key stays the same?
2
votes
1answer
176 views

Being offline: when do other nodes close channels?

If my lightning node goes offline, how long will it take until my counterparty nodes close the channels they co-own with me? This is obviously up to the counterparty nodes, as they can choose ...
2
votes
1answer
364 views

Closing a channel in Lightning Network

I have some doubts about the closure of a lightning network channel. As far as I know, there can be (al least) 4 different scenarious: one node decides to close the channel, and the other one accept ...
0
votes
1answer
35 views

Need help with a .conf file to run a lighting node?

This is my configuration file and i followed all of the instructions for the program but it always gives me the error message about something missing. I don't even know what programming language .conf ...
1
vote
1answer
35 views

I'm confused about some aspects of bitcoin Lightning network

Theoretically, I know How this network works. but technically I am confused. Is lightning running on the bitcoin protocol or another blockchain? Is is something like Sidechain? Where bitcoins in ...
0
votes
1answer
55 views

Lightning Network: what about tx fragmentation?

I really have no idea how to aks it right. Let me give an example: We have a some peoples A,B,C,D.... And A makes transaction to B, then A need to pay to C, then send some coins to D, etc... After ...
3
votes
3answers
162 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
88 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
1answer
210 views

LN channel lnd + android wallet problem

I am running LN node powered by lnd. Also I have installed on my phone a LN app - Bitcoin Lightning Wallet. I opened a channel from mobile app to lnd node sucessfully (many confirmations), but I ...
0
votes
1answer
34 views

What other lightning nodes are there besides Eclair Core for running a full node lightning?

I realized that in order to receive lightning payments from others, you need to first run a lightning full node. I found this one from Eclair: https://github.com/ACINQ/eclair Are there other full ...
2
votes
1answer
73 views

How to know that the account balance of a user needs to be updated after paying/sending an invoice?

Lets say there is a service in which users can have a few satoshis but are also able to deposite/withdraw satoshis by paying/sending a lightning invoice. Let us assume the service has some data store ...
1
vote
1answer
62 views

How can I see how many Bitcoins my c-lightning network node has?

I am running a c-lightning node and want to know how many btc I am owning on this wallet and how many I can spend. lightning-cli listchannels does not help. What do I need to do?
0
votes
1answer
113 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 ...
1
vote
2answers
201 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 ...