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
5 votes
1 answer
214 views

Should I keep my Lightning node data around after decomissioning?

Let's say I have a Lightning node, and want to shut it down. All its channels have been closed, and its onchain wallet has been drained. Is there any reason why I'd want or need to keep some or part ...
3 votes
1 answer
17 views

LND describegraph returns channels with null policies

The describegraph command for lncli returns several channels that have at least one policy set to null. In many cases, they are both set to null, and last_update is set to 0, as shown in the following ...
  • 422
1 vote
1 answer
41 views

How to send lightning payment request to lnurl from Android app with extra comment data?

I'm looking for a way to include extra description (comment) info in a lightning payment request i.e. LUD-12. Either with anchor link: <a href="lightning:bitanon@getalby.com" comment=&...
  • 21
1 vote
2 answers
43 views

Scalability of self custody and lightning channels

One of the mantras I hear repeatedly in this community is "not your keys not your coins", outlining the importance of self custody. In this regard, is it actually realistic for majority of ...
  • 11
1 vote
0 answers
16 views

Opportunity cost of coins locked in HTLC

If a party agrees to lock coins in HTLC for payment (having hashlock for time T), and it receives a fee f if the HTLC succeeds, then does it mean that the opportunity cost of coins locked in HTLC is f?...
0 votes
1 answer
26 views

Where does the max_htlc_msat field in the getchaninfo results come from?

Using an arbitrarily chosen channel, the getchaninfo command returns a json object like this: $ lncli getchaninfo 848897743567126529 { "channel_id": "848897743567126529", &...
  • 422
1 vote
0 answers
30 views

Trustless Lightning-to-Bitcoin Swap?

Submarine Swap is a trustless swap between Bitcoin (L1) and Lighning (L2). I understand the process of trustless swap from BTC to LN (aka. Swap In, Loop in, or forward swap), but I would need help ...
  • 314
2 votes
1 answer
36 views

Is there any Bitcoin layer (eg. Bitcoin = L1, Lightning = L2, etc.) on which the satoshi (SAT) is divisible?

I would be surprised if the SAT were divisible on L1... is it? I would be surprised if the SAT were not divisible on L2...is it? If the SAT is divisible anywhere, then to what decimal place? Is the ...
  • 186
1 vote
1 answer
22 views

LN-Channel: Do I have to use new private keys for each HTLCs out of security?

I have a question regarding the security of HTLCs in a LN-channel. In a LN-transaction with multiple HTLCs (routings) to the destination one is using the signature of each node provider so that the ...
  • 11
2 votes
1 answer
92 views

CLN having issues connecting to Tor service

Suddenly started getting this error, where should I look to try and fix it? Tor version 0.4.7.10 Tor compiled with GCC version 12.2.0 and lightning v0.11.2 e: lightning_connectd: Connecting stream ...
3 votes
1 answer
34 views

How do I set the our_to_self_delay parameter?

In Core-Lightning, the default value for our_to_self_delay is set to 600. How do I change this value?
2 votes
1 answer
35 views

Do I get the fees defined on the incoming or outgoing channel when routing a payment?

Say my node (Y) routes a 1000sat payment from A to B and I set the fees on the A-Y channel to 1000ppm and on the Y-B channel to 2000pm. (Zero base fee). How much fees has A to pay me? 1sat or 2sat?
  • 23
1 vote
0 answers
28 views

What does the tlsextraip setting do in LND?

The lnd.conf documentation says: ; Adds an extra ip to the generated certificate. Setting multiple tlsextraip= entries is allowed. ; (old tls files must be deleted if changed) ; tlsextraip= I think ...
  • 422
0 votes
0 answers
12 views

lncli reports "unknown authority" when trying to connect from another machine

lnd 0.15.5 I have a local network with two machines on it. Machine A runs Bitcoin Core and LND. Machine B has LND installed but I only want to use lncli to connect to the instance of LND running on ...
  • 422
0 votes
0 answers
31 views

best btc node and lightning to run in lubuntu

I run lubuntu in my ~#missing#~. I have made multiple efforts to install umbrel, I tried it but I couldn't install to my external SSD because I run out of space. I used all the possible commands but ...
2 votes
0 answers
34 views

Lightning node with two channels to peer not able to select funded channel

Description I have two peers: p1 and p2 running lightning-core p1 opened a channel to p2 and p2 opened another channel to p1. Now p2 has two channels. One with outbound funding and one with 0. Output ...
  • 121
1 vote
0 answers
77 views

Obtaining balance/UTXOs of an address from Bitcoin Core, blockbook, or some other solution

In my application I would like to obtain the balance and UTXO set of some Bitcoin addresses. I'm primarily looking to achieve this using a full node (Bitcoin Core, RPC), but I am also open to other ...
  • 314
7 votes
1 answer
510 views

Why aren't 3 party (or more) channels realistically possible in lightning today?

Speaking with Ben on twitter it appears that it isn't feasible without eltoo to create more than 2 party channels on the lightning network today. Why exactly is that the case today and how does eltoo ...
  • 1,548
3 votes
2 answers
54 views

C-Lightning Gossiping and Channel announcements

I am super new to lightning development and just starting to play around with stuff and wanted to execute some circular rebalancing payments, but was confronted with problems coming from the getroute ...
2 votes
1 answer
228 views

Muun Wallet - All Funds Stored On-Chain?

I've read so far all official Muun articles about the submarine swaps and emergency kits, but one thing still has me confused. Let's say I receive $500 worth of Bitcoin on-chain to my Muun wallet. ...
  • 23
1 vote
1 answer
32 views

Identifying Closing Balances on Lightning

Is it possible given on-chain and gossip protocol data to derive closing channel balances? For example, the following channel between ACINQ and magnetron has two txouts but unsure who's balance is ...
1 vote
1 answer
14 views

CLN listnodes command occasionally returns too many features flags

The BOLT #9 specification shows a 52-bit field that represents various feature flags. That should require no more than 7 bytes, or less. When I run the listnodes command, some of the nodes include ...
  • 422
1 vote
2 answers
26 views

Does the Lightning Network have an equivalent to "Proof of burn"?

Is there a provable way to "burn" a single satoshi for example?
1 vote
1 answer
23 views

listchannels returns no results from CLN

CLN 0.12.1 My node has been running for hours now. But it doesn't seem to be aware of the network. This is what I get when I try to run listchannels. $ lightning-cli listchannels { "channels&...
  • 422
1 vote
1 answer
30 views

Can CLN be configured to use a bitcoin node running on another machine?

CLN 0.12.1 I have bitcoin core running on one machine (Debian 11) and would like set up CLN (C-Lightning) on another machine (Ubuntu 22.04) on the same network. My first test was to use the --bitcoin-....
  • 422
2 votes
2 answers
56 views

Can you know the final destination of a BOLT12 offer?

It is said that a BOLT12 offer does hide the final destination, and therefore protects privacy of receiver. However, I just generated an offer, decoded it, and in the value node_id, it had my node's ...
  • 333
2 votes
1 answer
29 views

What does the disabled field of the RoutingPolicy object mean in LND?

lnd v0.15.3-beta The documentation for lnrpc.RoutingPolicy shows a boolean field called disabled, but it provides no definition of what that means. Each channel has 2 peers, and each peer in a channel ...
  • 422
2 votes
1 answer
35 views

How can I establish a connection with an IPv4 peer when my node has only IPv6?

I have a channel with someone who only has IPv4. I only have IPv6. How can I redirect the port in my LND to accept IPv4?
2 votes
0 answers
64 views

What happens if a Lightning channel close transaction is evicted from the mempool?

I recently had a cooperative close of a Lightning channel and the two Lightning nodes agreed a fee rate of about 1 sat/vbyte for the closing transaction. (This was fine by me; I always like to keep ...
  • 149
0 votes
1 answer
112 views

What can cause bitcoin node to be slow to sync?

I've already fully synced my node, but I've noticed recently that the tip of my chain is occasionally a few blocks behind peers. What could cause my node to be slow to update? My peers have the latest ...
  • 101
2 votes
0 answers
22 views

How would you build a bill splitting app using Lightning? Does one already exist?

How would you build a bill splitting app (20+ people) on Lightning? Does one already exist? Setting up a BTCPay Server shop seems like over engineering. This was asked by fulmolightning on Twitter.
1 vote
0 answers
21 views

What are the differences between the design of BOLT11 and BOLT12?

What are the differences between BOLT11 and BOLT12? Should I be using BOLT11 as of today (November 2022) even I like some of the features of BOLT12? Relevant resources are bolt12.org, this tweet ...
0 votes
1 answer
33 views

Is it possible to import a LN snapshot into the regtest network (possibly pruned version)?

I am currently writing a bachelor thesis where I plan to conduct some experiments on regtest network to evaluate how effective a particular rebalancing algorithm performs compared to currently used ...
4 votes
1 answer
126 views

What is the November 2022 bug in LND, what caused it and what would prevent a similar bug in future?

LND users are being asked as of November 2022 (as they were in October 2022) to urgently update their Lightning node software due to a bug in LND/btcd (alternative Bitcoin implementation in Go). What ...
0 votes
0 answers
24 views

docker-compose for LN works fine with regtest but error with testnet

I'm using this docker-compose file: https://github.com/zeltsi/lnsim It works fine with regest (without modification) Then I changed regtest for testnet (all 4 occurences) Now I have this error: ...
  • 285
0 votes
1 answer
59 views

How could 6 billion people be onboarded to Bitcoin and Lightning today?

How could 6 billion people be onboarded to Bitcoin and Lightning today?
0 votes
0 answers
33 views

LND (lightning) wallet doesn't generate the invoice

In my LND (lightning) wallet invoice commands are not working and invoices are not generated but other commands and functions are working such as wallet balance, listpayments, listchannels, ...
0 votes
0 answers
43 views

how do you use `lncli newaddress` command to get an address from the change chain?

I used my lightning wallet (LND) zpub (BIP32 xpub used to extract the BIP84 zpub) to create a watching wallet in Electrum. (Yes, I checked and the addresses match.) I then sent some coins to some ...
0 votes
1 answer
72 views

Open channel (LN) in Electrum testnet is not accessible?

I use Electrum wallet (version 4.3.2) on tesnet (apple desktop). The testnet balance is 0.02 tBTC. Under the 'Channels' tab, the option 'Open Channel' is there but it is not clickable. Is LN testnet ...
  • 285
1 vote
0 answers
73 views

Why does the Lightning Network snapshot I get via lncli describegraph only include about half the network?

I pulled a snapshot of the Lightning Network via lncli describegraph with my Umbrel node in July 2022. Everything worked fine and I analyzed the snapshot: ~18k nodes, ~85k channels, ~4k BTC total ...
1 vote
2 answers
51 views

How can I find out what proportion of the LN nodes are running specific implementations?

Is there a way to find out what Lightning implementations power which proportion of the Lightning Network? I tried checking a number of websites with statistics about the Lightning Network including ...
  • 67.2k
0 votes
0 answers
26 views

LND Rest API in Django

Looking for some help here. I am trying to create a Django Rest API for payments using an LND node. I am following the documentation of the Lnd REST API (https://api.lightning.community/#v1-balance-...
4 votes
1 answer
83 views

Can a miner open a Lightning channel with a coinbase output?

Assuming that the funding transaction uses a P2WSH output, can we open a channel by providing that standard 2-of-2 multisig as the coinbase output?
  • 75
1 vote
2 answers
79 views

Can you use bitcoin seed phrase to create/restore lightning wallet?

Lets say I already have a hardware wallet or existing Bitcoin wallet with seed phrase. I want to now create a lightning wallet on a new device. Rather than starting a whole new Bitcoin wallet via some ...
1 vote
0 answers
29 views

HD wallet usage in Bitcoin & Lightning combined wallets

Is there a best practice / recommendation for a Bitcoin & Lightning combined wallet, regarding the HD wallet used in the Bitcoin wallet and the HD wallet used in the Lightning wallet? no relation,...
  • 314
0 votes
1 answer
31 views

Problem calculating routing fees

I'm trying to compute the routing fees for a lightning network payment of 100,000 msats. The route uses the following sequence of channels (CHAN1 is not shown for privacy reasons): CHAN1 (base fee: ...
2 votes
1 answer
168 views

What is the current status of watchtower implementations in October 2022? Are they mature, widely in use?

One way of protecting yourself against losing money as a result of bugs and crashes in your Lightning node implementation software (e.g. the recent LND bug) is to run a watchtower yourself or employ ...
1 vote
1 answer
31 views

Can I connect my LND to someone else's bitcoin node?

Now I am running my own Bitcoin full node on my local machine and connect to it with LND. I see some open bitcoin nodes on https://bitnodes.io and wonder if it's ok to connect my LND not to my own ...
2 votes
1 answer
85 views

What's the purpose of the payment_secret in a LN invoice?

In the tagged fields of the BOLT 11, it is stated: This 256-bit secret prevents forwarding nodes from probing the payment recipient. When referring to the tagged field identified by the s key. Can ...
  • 235
0 votes
0 answers
62 views

Can't make 1 hop lightning payment, no route

I'm trying to send a payment on the Lightning testnet. I'm running 3 nodes on 3 computers on my network. So far I've setup two channels, and sending sats between the channeled nodes has been fine. A &...

1
2 3 4 5
19