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.

2
votes
0answers
24 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
17 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
15 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 ...
-4
votes
0answers
26 views

My conclusions about the Lightning Network and a request for critique by smarter people! [on hold]

I am writing an in-depth article about the Lightning Network. I want it to be comprehensive and balanced, educating people on the state of LN, how it works, as well as on current internal debates over ...
3
votes
1answer
30 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, ...
2
votes
0answers
19 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
35 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
25 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
39 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
106 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
20 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
18 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
23 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
46 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
30 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
33 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
21 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 ...
0
votes
1answer
47 views

Total channel count differs from explorers

I have my own c-lightning node. listchannels returns 11,455 but explorers, e.g https://explore.casa/ show around 39,000. Do I need to set something to get all channel info? $ lightning-cli ...
4
votes
3answers
849 views

“HTLCs don't work for micropayments”?

I read this tweet by Tadge Dryja recently. What exactly did he mean? Is this an issue? If so, is this issue fixable?
0
votes
1answer
35 views

Lightning node on a Bitcoin SPV

is there a way to run a Lightning node on a Bitcoin SPV node at the moment? I've read that both lnd and c-lightning need a Bitcoin Fullnode at this time. This might seem ignorant but i don't want to ...
0
votes
1answer
30 views

How to backup seed in lightning and give your channel to watchtower

this is followup on question #85475: I have learned in previous question that there is an automatic refund mechanism in case of force closure of a channel, except for some very rare circumstances. I ...
2
votes
1answer
366 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 ...
0
votes
1answer
19 views

Is it possible to get Node Id that paid an invoice?

I know it's possible to decode an invoice to see which node ID signed it by decoding it according to specs. Is it possible to get Node ID that paid an invoice to my node?
0
votes
2answers
60 views

Lightning - Question about force-closures of channels and its impact on recovering funds

Dear Lightning experts, someone mentioned in context with lightning channels the following things, and I would like to ask you if this statements are true, and if yes, is this a problem in a future ...
0
votes
1answer
63 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 ...
1
vote
1answer
38 views

lightning-cli listnodes is empty. Am I missing something?

I want the result of listnodes like the following. How can I do that? { "nodes" : [ { "nodeid" : "028e5a8e86540f703e1f58880d35d1e318a54c27d84ec1edbcde04a78ed4469a1e", "alias" : "???? ...
0
votes
1answer
36 views

What happens when invoices get paid more than once?

Until today I thought, that lightning invoices can only be paid once. Where do the funds go when an invoice is paid more than once? Will every payment reach the destination node or can reusage be ...
0
votes
1answer
16 views

Security of ChaChaPoly (IETF rfc7539) in the noise protocol framework of the Lightning Network

According to this paper ChaChaPoly is secure against chosen known plaintext attacks. I wonder however if that security assumption is weakened by a lot since messages sent on the transport layer of the ...
0
votes
1answer
18 views

remote channel message: Unreasonable to_self_delay = 2016 (max=2000)

so tried to open a node whose owner opened the port but I get this message above: remote channel message: Unreasonable to_self_delay = 2016 (max=2000). I tried on both elcair wallet and bitcoin ...
1
vote
1answer
35 views

What are the consequences if I spoof an IP address in the node_announcment message?

According to BOLT 07 the node accountment message looks like this: type: 257 (node_announcement) data: [64:signature] [2:flen] [flen:features] [4:timestamp] [33:node_id] [3:...
2
votes
1answer
33 views

Routing for Lightning network: was Flare implemented?

There is a 2016 paper from Bitfury on a proposed routing algorithm for LN: Flare: An Approach to Routing in Lightning Network What is the relation between it and was was actually implemented (the ...
3
votes
1answer
87 views

How would the gossip protocol announce channels from a channel factory?

I was just listening to SLP59 with Christian Decker. They mainly discussed channel factories. While the construction of multiparty channels and higher order systems (sub channels) being derived from ...
0
votes
0answers
39 views

How to perform CPU mining on bitcoin TESTNET on Linux?

I need approximately 100 Bitcoin Testnet to run an experiment on the lightning network. Any suggestion on how to run CPU mining? Should I use cgminer? Make any sense to perform solo mining on ...
3
votes
1answer
32 views

What information does a lightning network node hold?

Just setup my first lightning network node, what information exactly am I downloading when syncing?
1
vote
2answers
49 views

Why was noise XK fundamental pattern chosen in the transport layer (BOLT 08) of the lightning network

I am currently reviewing the transport layer of the Lightning network protocol. It builds on top of the noise protocol framework handshake patterns. What I don't get: Why was the fundamental pattern ...
1
vote
0answers
36 views

Why did the lightning network implement a gossip protocol?

As pointed out by many lightning developers in the past (eg Rustys 1 million channel challenge) the gossip protocol is quite noisy and a part of the BOLTs producing many engineering challenges. Today ...
5
votes
1answer
111 views

Why is the length of the transport messages on the lightning network encrypted?

From BOLT 08 we can see that every message is sent in the following way: 2 byte: length 16 byte: MAC [length] byte: Encrypted message 16 byte: MAC In reality these messages will be send over TCP/...
3
votes
1answer
39 views

Betweeness Centrality LND node

How can one calculate betweeness centrality of your node as mentioned in that video. I would like to take into consideration base_fee_msat fee_rate Is there a smart way to figure out what suites ...
0
votes
1answer
34 views

Can't connect to bitcoin lightning node

Am trying to connect to https://1ml.com/node/02671251b5678771514df8f26cc01508606d697ae8cad38063f84becbd359b189f From eclair app https://imgur.com/gallery/GoAMpjp it keeps saying failed to open ...
0
votes
1answer
24 views

What is the technical difference between BTC and LN wallets?

What is the technical difference between BTC and LN wallets? Are they generated via a diferrent algorithm or format?
1
vote
3answers
137 views

Can someone please explain the meaning of “neutrino” within the lightning network?

@RenePickhardt wrote the below quoted comment in another thread (thread# 85062) Background was if a mobile wallet can be both, full lightning node and wallet at the same time. "" I have many ...
0
votes
0answers
25 views

lnd - “unable to create server: no active channels exist” after successful lncli unlock

I'm setting up a Lightning node using bitcoind and lnd and this guide: How to Install and Use the Lightning Network with bitcoind on the Bitcoin Mainnet It's been an interesting couple of days, but ...
0
votes
1answer
13 views

What is a stub from the lightning grpc documentation?

For example, very often in the lightning documentation for their grpc api, you will see the following boilerplate python code: >>> import codecs, grpc, os >>> import rpc_pb2 as ln, ...
0
votes
1answer
57 views

How do custodial lightning wallets work?

I just installed and tried to use a lightning wallet (bluewallet) on an Android device. As per my understanding, when I fund my lightning wallet (This is an on-chain tx) with amount x, I open a ...
0
votes
2answers
21 views

Sharing the lightning-rpc socket

I'm using user "lightning" to start the daemon, but would like to have user "bitcoin" to make the lightning-cli calls. How do I share the lightning-rpc file to do so? Thanks! Francois
2
votes
1answer
55 views

Unable to find Lightning Node

I have successfully installed and synced my lightning node (Raspiblitz). I see my public ip on port 8333 has 8 conns. However, when I check my node on 1ml.com my node is not found. I did forward port ...
1
vote
1answer
36 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 ...
0
votes
1answer
41 views

What to do when funded channel node disappears

I would like to test this scenario on a testnet. I funded a channel with one testnet node. Assume that node suddenly vanishes and doesn't come back up for, say, another 4 weeks, or never. What is ...
2
votes
1answer
33 views

What is the cost of resolving a Lightning channel breach?

If someone breaches a Lightning channel (aka tries to spend more than he is allowed to), the other party has to intervene and prove that the coins actually belong to them. This process happens on-...
0
votes
1answer
27 views

How to get all potential routes in c-lightning?

I'm trying to write some services on top of c-lightning and I need to check if certain payments hit certain nodes. lightning-cli getroute nodeid amount riskfactor This gives me a randomly ...