Stack Exchange Network

Stack Exchange network consists of 175 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
1answer
11 views

How multiple unfinished payments in single LN channel work?

I think I understand HTLCs, at least if they are on chain. I also have a basic understanding of how off chain channel looks like. I understand it as follows. It is a 2-of-2 multisig transaction ...
1
vote
2answers
27 views

Why do we use CLTV instead of CSV in the HTLC output of the commitment transaction?

In lightning network commitment transactions, the HTLC offered/received outputs generally pay the offering node after a timeout which is scripted using CLTV. In other parts of the commitment ...
1
vote
0answers
25 views

How does 1ML measure the availability ranking of nodes?

If there is an 1ML Node Rank ranking explanation anywhere ? My node is online 99.9% but "Availability" dropped down from 700 to 4000 in last 3 months. :( I guess this is somehow associated with the ...
2
votes
1answer
28 views

What are some proposed privacy features coming to the bitcoin lightning network?

If I'm correct, a bitcoin sent into a lightning channel technically looks like any Bitcoin transaction. From there if the channel never closes, the Bitcoins can essentially stay in a "locked" state in ...
1
vote
1answer
21 views

How does one generate a paper wallet for a Lightning Bitcoin address?

Is there a paper wallet generator for a Bitcoin Lightning addresses? How can one generate it in javascript?
0
votes
1answer
20 views

Implement HTLC manually by writing scripts

Is there any way to implement HTLC manually for locking funds in the channels in lightning network for a period of time (by setting intervals) and releasing the funds after the time lock expired using ...
1
vote
1answer
21 views

lnd SendPayment “unable to find a path to destination”

I got an error "unable to find a path to destination" when I call SendPayment to an invoice, created at starblocks.acinq.co, from my local private LND node on mac (docker). It seems getinfo and ...
3
votes
1answer
106 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.
1
vote
1answer
23 views

How Lightning Networks protect itself from 'Selfish Mining'?

It is a well accepted fact that mining pools do engage in 'selfish mining' by not broadcasting a block to the network when they find a PoW solution, but building on top of that block so as to maximize ...
1
vote
3answers
111 views

Can the bitcoin lightning network support more than 8 decimal places?

Say Bitcoin goes to 1 a million dollars. We need more decimals, but btc core only supports 8 decimals? By that time its safe to assume everyone will be using lightning to do transactions, but will ...
1
vote
1answer
13 views

How many channels of Lightning Network can I open in one transaction?

To open channel I should create a transaction with a special script and at least one output to P2WSH address. Is it possible to open more than one channel in one transaction if I created transaction ...
2
votes
2answers
34 views

How can a single funded channel become bidirectional?

Is it possible that funding transaction of Lightning Network channel has got just one input? And if yes will it be one-directional during whole period of channel existence? Or after some off-chain ...
0
votes
1answer
23 views

How can I create HTLCs below dust_limit_satoshi in Lightning Network?

BOLT#2 documentation for open_channel message has two points (dust_limit_satoshi and htlc_min_msat) in the data message that I found confusing. Below is the statement related to dust_limit_satoshi: ...
2
votes
1answer
30 views

What is correct way to count LN node stats

I am running a LN node. Set up monitoring to collect stats. Now i am wondering, how can i get correct conclusions about what collected information actually is. My question is about forward (...
5
votes
1answer
732 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 ...
4
votes
1answer
71 views

Can I test Lightning on Bitcoin regtest?

I want to do some Lightning experiments, but want to avoid the burden of synchronizing the blockchain (even testnet). Can I experiment with Lightning using regtest? Is there a manual for setting it up?...
1
vote
2answers
45 views

Distinguishing Lightning channels on-chain

Is there a way to tell (probabilistically, maybe) by looking at an on-chain transaction that it is related to Lightning (is [likely to be] a channel opening or closure)?
2
votes
2answers
254 views

Fee negotiations in Lightning

How are fees negotiated in multi-hop payments in Lightning? Imagine a four-hop payment: Alice -- Bob -- Charlie -- Dave. Bob and Charlie advertise fees of 100 sat each, Alice thinks it's reasonable ...
1
vote
1answer
32 views

How do new nodes learn the topology of Lightning network?

Lightning nodes store a full network snapshots to calculate routes for outgoing payments. Nodes listen to announcements of new (public) channel openings and constantly update their local snapshots. ...
1
vote
1answer
30 views

Multisig without P2WSH in Lightning

The current Lightning implementations use P2WSH script format for multisig in the funding transaction. But it is also possible to use the CHECKMULTISIG opcode "natively", i.e., without P2WSH (see ...
0
votes
1answer
25 views

I've been reading about “loop in” and it seems to be like a one-way offline channel, is that correct?

Am I oversimplifying? I feel like I must be missing some details. Can I use my Trezor to sign loop in transactions in theory?
1
vote
1answer
175 views

Which daemon is a lightning node running?

To run a lightning node we can use 3 different daemons : - c-lightning - eclair - LND Is there a way to understand which daemon is a specific peer running?
6
votes
1answer
139 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 ...
1
vote
1answer
102 views

Why is my lighting node not routing any transaction?

I have set up a lighting node months ago using LND under the tor network. My node (Caffeine) looks correctly configured and connected to several channels but it is not routing any transaction. In the ...
3
votes
1answer
35 views

Can I update my channel state with another node signing offline in person?

I create a channel with someone I know in person. We both lose internet connection. Can we transact in person with one another signing each others transactions and maintaining our channel states ...
1
vote
1answer
37 views

How to install & activate a c-lightning plugin in lightningd?

I recently stumbled across the https://github.com/lightningd/plugins github repo and wanted to install the autopilot plugin. But how can I install and activate the plugin which I downloaded from the ...
2
votes
1answer
39 views

Can funds from a LN channel be recovered if both participants suffer data loss?

Is there a way to recover funds if both channel partners suffer loss of the latest channel state? Would both having their static-channel-backups be sufficient to recover the channel?
2
votes
2answers
36 views

Lightning LND - Send Payment Both Ways Within Same Channel

Me and my friend are testing Raspibolt running LND 0.6 Beta. We noticed the following problem/limitation: When I opened a channel with him, I could send him payments (via invoice) without any ...
2
votes
1answer
48 views

Do we still need SIGHASH_NOINPUT for Lightning Network?

In the original Lightning whitepaper, Joseph Poon advocates using SIGHASH_NOINPUT so that we can create the first commitment transaction which references the funding transaction txid without actually ...
0
votes
1answer
22 views

How can I find the transaction that spends a specific output via an API?

I am wondering how I can find the transaction that spends a specific output (for a large number of transactions). So for example, I have a transaction like the following: https://www.blockchain.com/...
1
vote
1answer
31 views

What if all nodes on the lightning network were watchtowers by default?

What would be the costs for forcing every node on the lightning network to provide watchtower services by default so that the burden is shared by other users maintaining the default and with ...
3
votes
1answer
43 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 ...
0
votes
1answer
31 views

Question regarding LN node backups

I have LN node running on c-lightning. I am performing ~/.lightning dir backups time-to-time. Let's say after backup i open few new channels and withdraw rest of onchain funds to my electrum. Then i ...
0
votes
1answer
21 views

Why are Sphinx forward messages not used in Lightning's onion packets?

It is useful to send some additional information with a payment in LN. For example, spontaneous payments in LND send a payment_preimage to the destination of a payment. LND uses a non-trivial EOB ...
2
votes
0answers
43 views

How to make a homomorphic preimage/payment hash with current lightning network / Bitcoin implementations?

If I remember / understand it correctly by using the mechanisms from the scriptless scripts paper we could easily create homomorphic preimages / paymenthashes. I think this would be a very desirable ...
3
votes
1answer
29 views

Is there a way to abort a stuck lightning network payment?

I recently had this problem IRL: tried to pay in a coffee shop with LN, but my channel partner was "sleeping", so after a while I paid in cash. Then, 5 min later, the server comes back online, the LN ...
1
vote
1answer
18 views

How do Lightning Explorers like 1ML register closed channels?

I want to do analytics on unilaterally and mutually closed channels. To do so I need to scan know when channels close. It seems to me there's no other way than to actively scan the network graph for ...
3
votes
1answer
48 views

What is the current Status of major proposed BTC upgrades like Taproot, MAST, Submarine Swaps?

I have read during the last year about some very interesting BIPs or initiatives. I am not asking for their explanations, just would be great if anyone would know about their simple status as of now, ...
3
votes
1answer
41 views

How to transmit fraudulent commitment transaction on lightning channel?

I'm trying to simulate a fraudulent commitment transaction on lightning. How would you submit an earlier commitment transaction. It doesn't seem like this can be done with a command. Does anyone know ...
1
vote
2answers
40 views

how to transmit commitment transaction (unilateral close) from lightning network channel

How would you transmit a commitment transaction from a lightning network channel instead of closing the channel? I am working on implementing a watchtower and I first need to simulate a double spend ...
0
votes
2answers
32 views

Hosting lightning node and non-custodial

In Bitcoin we can have a light wallet where we are connected to a full node, by doing this, we have to trust that the full node is feeding correct information, but at least we can store our keys in ...
1
vote
1answer
40 views

Listen for transaction on specific address

How can you listen for a transaction on a specific address? I'm working on building a lightning network watchtower and the first thing I need to do is detect when someone closes a channel.
6
votes
1answer
139 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'...
2
votes
1answer
29 views

What's the maximum size of the memo in a LN payment request?

What is the maximum size of text held in the memo portion of a lightning network payment request?
0
votes
1answer
25 views

Does the `HTLC fail` routed back to sender using same path if intermediate node does not have enough capacity?

In the Lightning Network, the intermediate hop between the sender and receiver checks for possible errors(like if it has enough balance). And if there is, it sends an HTLCFail message back to the ...
1
vote
1answer
35 views

How can “Lightning Loop Out” help me to receive more payments?

In his blogpost, Alex Bosworth describes that “emptying of the channel allows them to receive more payment” (https://blog.lightning.engineering/posts/2019/03/20/loop.html). But how can I allow more ...
0
votes
2answers
99 views

History of transactions in Lighting Network

I'm just a beginner in lighting network. Have some questions about transactions in LN when im doing the research Transactions in LN are off-chain, so transactions couldn't be stored in main-chain, so ...
0
votes
1answer
49 views

Send coins from bitcoind full node to lnd without fee?

I'm trying to fund my LND node, for that I put some dust on my BTC wallet address and now I want to send to my LND wallet address but when I try to send with fees "paytxfee": 0.00000000 returns an ...
1
vote
1answer
62 views

How do hodl invoices work?

On March 15th, 2019 hodl invoices where added to lnd via this pull request. Hodl invoices allow a recipient to accept or deny a transaction at their discretion, a very useful feature. However, how ...
0
votes
0answers
25 views

Cannot get feereport due to error “[lncli] rpc error: code = Unknown desc = no policy for outgoing channel”

Lots of my lnd command got stucked with error message like: [lncli] rpc error: code = Unknown desc = no policy for outgoing channel 591836322924134401 I have checked the channel id appeared in 1ml ...