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.

0
votes
0answers
8 views

LN transaction on the mainnet

I want to do a LN transaction on the Bitcoin mainnet. How can I do this ? Are there any special wallets out there and if yes which wallet ?
0
votes
1answer
18 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
38 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
14 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
29 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
26 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 ...
1
vote
1answer
27 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
22 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?
1
vote
1answer
33 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
127 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
0answers
21 views

failed , peer sent error: bad announcement sig!

I have been running eclair for some time now but there are some problem i experience time to time. 1. channel close them self with out me doing any thing, is there time span channels has to be closed ...
0
votes
1answer
17 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 ...
0
votes
1answer
25 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
38 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
101 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
73 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
39 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
16 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
67 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
28 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
27 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
1answer
36 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 ...
1
vote
1answer
43 views

How much Bitcoin is needed to start a Lightning node?

I've never used Lightning but can someone recommend how much Bitcoin I need to fund a Lightning node? I will be using the Eclair client. Thanks
1
vote
1answer
29 views

rpc error: code = Unknown desc = dial tcp 103.102.44.207:9735: connect: connection refused

I'm getting connection refused when I try to connect to a public testnet node. lncli --network=testnet connect 022ff54505fe9b50ce6c3c99c645c9aab67fe91abb01504c5211045b82a09aa757@103.102.44.207:9735 ...
1
vote
1answer
64 views

unable to read macaroon path (check the network setting!): admin.macaroon: no such file or directory on lncli getinfo

Just started lnd for the first time connected to a bitcoind node. Do lncli getinfo and this is the error message. How can I get past this? EDIT: Would like to add that I'm using lnd on testnet, ...
0
votes
1answer
19 views

Submitting an old balance sheet in the lightning network

If either party can close a lightning network channel by submitting their version of the balance sheet. What stops one party submitting an old version of the balance that favours them? Would the ...
0
votes
1answer
15 views

Is it possible to create pure lightning lockboxes (without touching the blockchain)?

I'm considering a scenario in lightning, where it would be extremely useful to be able to lock the funds in 2/3 lock Is this possible on lightning network (even in theory)?
2
votes
2answers
94 views

Are there any risks on publicizing a Lightning network invoice?

What are the negative effects of publicizing a LN invoice either before or after its payment? From what I understand, after its payment it won't allow a 2nd payment of the invoice, so 3rd parties ...
0
votes
2answers
76 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...) ...
1
vote
1answer
24 views

Lightning network Fraudulent Channel Close

If a lightning network transaction between 2 participants, where the payment is routed by multiple channels, does it means that all full LN nodes that routed the payment should stay online to avoid ...
1
vote
1answer
16 views

Lightning Network: can I create a channel from a preexisting channel?

If I open a channel with myself for 0.01 BTC, with one end having all, and the other having none, could I create an updated contract, or state, to send 0.001 BTC to an address owned by Alice, even ...
2
votes
1answer
89 views

Restore lightning network node/channels

If one wanted to restore a lightning network node, what files have to be saved? I read that saving hsm_secret is enough to restore private key(s), but I also read about a problem with channels. How ...
0
votes
1answer
35 views

Lightning network: funds into channels

Is there a minimum limit of bitcoin that can be added into a channel during the initialization? And, if I decided to open a channel with a lightning node, also that node has to add money to the ...
1
vote
1answer
26 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
58 views

Lightning network: Open a channel with a peer that is not a full node?

Is it possible to open a channel with a peer that is not a full node? Or to exchange lightning payments between two peers that are not full nodes, they both have to open a channel with full lightning ...
1
vote
1answer
230 views

Can you run a bitcoin lightning node on a raspberry pi zero?

Will a bitcoin lightning node run on a raspberry pi zero? Does it have to have the full Bitcoin blockchain synced or can it connect to a remote node? Also what are the minimum requirements to get a ...
1
vote
1answer
35 views

Failed to start lightningd.service: Unit bitcoind.service not found

I followed the tutorial https://medium.com/@meeDamian/c-lightning-node-on-rbp3-b950660fb835 without error. When I type: sudo systemctl start lightningd I get Failed to start lightningd.service: ...
2
votes
1answer
47 views

Lightning Network: what happens if parties lose their txs?

Let's take the classical example of Alice and Bob with 0.5BTC each. Commitment Txs are exchanged for a new balance sheet: Alice has 0.6BTC, and Bob 0.4BTC. If Alice loses Bob's Breach Remedy Tx, she ...
1
vote
2answers
41 views

Can LN clog main chain BTC?

Main chain BTC can handle something about 300k tx per day without increasing fees, open and closing channels need to be done using standard tx on main chain. So the question is if we will have large ...
2
votes
2answers
52 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 ...
1
vote
0answers
20 views

Has Lightning Network seen any fraud or major vulnerabilities? [closed]

I'm curious to know has LN faced any major issues so far?
1
vote
1answer
81 views

What type of smart contacts will be available on Lightning Network? [closed]

What kind of contacts will we be seeing eventually on LN? Will it be anything like what Ethereum has?
2
votes
2answers
101 views

Can SPV clients offer “proof of absence” of a transaction?

So light SPV clients give the user the ability to obtain merkle proofs (from a full node) that a given transaction is included in a block. Is there some cryptographic mechanism by which an SPV client ...
1
vote
1answer
68 views

Share balance between lnd and bitcoind

I have a bitcoind instance with some balance. When I run lnd (which is connected to this bitcoind instance) it seems to use its own wallet. Is there any way I can use lnd with the bitcoind balance ...
1
vote
1answer
47 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
0answers
34 views

“state channel” v.s “micro-payment channel” : are they the same?

We use "micro-payment channels" such as "Bitcoin Lightning Network" or "Duplex Micro-Payment Channels" for saving transaction fee, accelerating payments, supporting better micro-payment and scaling ...
4
votes
1answer
47 views

How to migrate lightning nodes?

I am wondering what steps to take to migrate a lighting node to a different server, keeping the pubkey/identity. The safest option is obviously to close the channels first. How is the identitiy pubkey ...
2
votes
0answers
53 views

How does channel factory act?

I am reading paper named "Scalable Funding of Bitcoin Micropayment Channel Networks". If Alice, Bob, and Charlie created a channel factory, I thought that only these three people can make a payment ...
0
votes
1answer
36 views

does Lightning Network can work and solve Bitcoin scalability problem? [closed]

from what i managed to understand(if i got it right), the lightning network is supposed to work by using "channels" which can be created by some users with some seller and also be used by anyone who ...
0
votes
0answers
127 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 ...