Questions tagged [lightning-network-daemon]

A complete implementation of a Lightning Network node developed by Lightning Labs and other contributors. Licensed under MIT. LND needs btcd, bitcoind, or neutrino as a back-end service.

Filter by
Sorted by
Tagged with
11 votes
2 answers
2k views

How to recover funds from a force-closed Lnd lightning channel?

I lost my Lnd channel backup in a boating accident, but I still have the mnemonic. I had one freshly opened channel to my own c-lightning node which has never been used. I force closed the channel ...
Sjors Provoost's user avatar
10 votes
2 answers
4k views

Running lightning in prune mode

I am running lightning with the LND implementation and a full node. Nevertheless, I heard that it is possible to use Lighting in pruned mode. How is this possible? I read in the LND install ...
dvg's user avatar
  • 125
9 votes
1 answer
665 views

What are the downsides of Hodl Invoices?

As far as I understand hodl invoices enable some interesting use cases. However, I heard that they can be detrimental to the network. Is that correct and in what way? Additionally, at a talk at the ...
nickler's user avatar
  • 776
8 votes
2 answers
1k 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 505580x1917x1; Channels from the ...
user1692333's user avatar
8 votes
2 answers
668 views

Lightning Node High Availability/High Throughput

Are there any resources/best practises on running a highly available/high throughput lightning node? If my lightning service where to take off, should I be running multiple lightning nodes or a single ...
rosexad884's user avatar
7 votes
1 answer
2k views

When opening a LN channel using LND, what does 'push-amt' do?

I set up Lightning node (LND) and wanted to receive a payment. Autopilot for managing the channels always creates channels w/ zero remote balance, thus nobody can route a payment to/through my node. ...
jakob's user avatar
  • 303
6 votes
1 answer
569 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 ...
ranchalp's user avatar
  • 567
6 votes
1 answer
130 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 ...
Samvid's user avatar
  • 105
6 votes
1 answer
240 views

How can I increase the routing my 'small' lighting node performs?

I know this question has been asked a lot. However I am not able to grasp the correct approach to address this. Let me give you the context: I spun up an LND node to start experimenting and ...
jayt.dev's user avatar
  • 203
6 votes
1 answer
3k views

How does lnd's autopilot feature work?

Autopilot automatically connects to peers in order to establish a p2p network. I didn't find however a complete explanation of its motivation and logic.
ripper234's user avatar
  • 26.6k
5 votes
1 answer
783 views

Get invoice amount from payment request - LND REST API

I'm using the REST API of my LN node to generate and pay invoices. I would like to know how to get the invoice amount/value in sats from the payment request I receive. I found this : https://api....
Lounès KSOURI's user avatar
5 votes
1 answer
2k views

How do I find the nodeid of the node issuing a lightning network invoice?

I recently got an BOLT11 invoice from a store. For example this one: ...
Rene Pickhardt's user avatar
5 votes
1 answer
162 views

Betweeness Centrality LND node

How can one calculate betweeness centrality of your node as mentioned in this video. I would like to take into consideration base_fee_msat fee_rate Is there a smart way to figure out what suites ...
Kortik's user avatar
  • 51
5 votes
1 answer
452 views

Unilateral close because of HTLC in remote commitment

I run lnd on my node and sometimes see messages like this: [INF] CNCT: ChannelArbitrator(CHANPOINT): immediately failing htlc=HTLCID from remote commitment The corresponding close transaction sent ...
C-Otto's user avatar
  • 442
5 votes
1 answer
912 views

How long can my lightning node be safely offline?

I am interested in setting up a full bitcoin and lightning node on my pi. I want to open a few channels and be well connected in the network. I intend to keep this machine on permanently, but may ...
ooomid's user avatar
  • 354
4 votes
1 answer
762 views

How to obtain the Channel_ID from the Short_Channel_ID?

Is there a way to retrieve the Channel_ID knowing the Short_Channel_ID without using any lightning network explorer? How is the Short_Channel_ID calculated? Is this operation reversible?
Stefano Angieri's user avatar
4 votes
1 answer
476 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 ...
arshbot's user avatar
  • 1,778
4 votes
1 answer
178 views

Can I safely share my bitcoind instance for separate LND instances of different users?

Currently I have my own full bitcoind node running on a VPS and an LND instance connecting to it and working fine. However I am thinking, what if I share access to my bitcoind node to some other users ...
Sergei Basharov's user avatar
4 votes
1 answer
1k views

Under what conditions would lightning channels be force closed automatically?

I suspect this depends heavily on the implementation, but maybe someone can shed light on the circumstances that would lead an implementation to force close a channel automatically. A user asked this ...
k00b's user avatar
  • 43
4 votes
1 answer
156 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 ...
Michael Folkson's user avatar
4 votes
1 answer
3k views

How to get the wallet address of my own LND node?

I have set up a lighting node using LND time ago, now I would like to send more BTC to it. How can I get the wallet address of my LND node?
alec_djinn's user avatar
4 votes
1 answer
102 views

Does balance broadcasting hinder scalability of LN?

Rene Pickhardt states in his research that broadcasting the balance values would hinder the scalability of the Lightning Network meaning that broadcasting the local and remote balance of each channel ...
jayt.dev's user avatar
  • 203
4 votes
1 answer
1k views

How and When are lightning channels disabled?

On the testnet and some mainnet there are channels which are disabled, so if you try to route a payment through them it failed with this as an error message. Reading through the RPC commands, it seems ...
Oonah's user avatar
  • 95
4 votes
2 answers
798 views

How to tell if Lightning nodes are lnd, c-lightning, eclair

I am performing some experiments on the Lightning Testnet Network. I would like to perform the experiment on the 3 main lightning implementations, for which I would like to be able to connect and open ...
ranchalp's user avatar
  • 567
4 votes
2 answers
793 views

Obtaining Lightning network graph data

I was wondering if it is possible for me to obtain data about the Lightning network mainnet, particularly the nodes and the edges (channels) in the network. I know that the graph is visualized in ...
antimornings's user avatar
4 votes
3 answers
108 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 ...
Zephyrus's user avatar
  • 782
4 votes
1 answer
507 views

How to migrate Lightning (LND) from local laptop to external myNodeBTC node

I am in the process of migrating my LNP/BP stack from a Windows laptop to a dedicated myNodeBTC (RaspPi) device. My node on the Windows laptop was installed using Node Launcher. I already have the ...
statusquont's user avatar
4 votes
0 answers
168 views

Sign lightning channel creation PSBT with Golang

I'm trying to open a channel on regtest with LND v0.13.0-beta.rc3 using their PSBT workflow to allow for remote signing. I've done the following steps: I create a regtest wallet using the BIP39 ...
SamCymbaluk's user avatar
4 votes
0 answers
216 views

libwallycore error installing LND on Ubuntu 18.04

I'm setting up an LND node on Ubuntu 18.04. I've installed python3, and cloned the repo. I ran configure, and get this error on the make command: checking byteswap.h, usability... no checking ...
user99201's user avatar
  • 129
3 votes
2 answers
2k views

What is the difference between wallet balance, local balance and remote balance in the Lightning Network?

I am having a hard time understanding the difference between the different "balances" in the Lightning Network. For example, I am running an LND node and I have the following balances: $ ...
alec_djinn's user avatar
3 votes
1 answer
703 views

How do 'Sphinx' invoice-less payments on the Lightning Network work?

There was recently a WIP draft published to the lnd Github, for a 'Sphinx payment mode' for Lightning Network nodes. To quote Roasbeef from the Github PR: [this allows] the ability to send a ...
chytrik's user avatar
  • 18.3k
3 votes
2 answers
1k views

What is the unit of time_lock_delta in LND?

LND has a configuration setting called time_lock_delta with the description "The required timelock delta for HTLCs forwarded over the channel.". I assume this to refer to some measure of time, but ...
Murch's user avatar
  • 75.4k
3 votes
2 answers
683 views

Make payments Lightning without Invoice?

The Lightning-RFC defines, in BOLT #11, an invoice protocol for proof-of-payment. While this is a pretty cool feature, I was wondering if it would be possible to make a payment without such invoice. ...
ranchalp's user avatar
  • 567
3 votes
1 answer
195 views

Who bears the transaction fee for settling HTLC in Lightning Network?

Given a channel that exists between Alice and Bob, where Alice wants to transfer 0.0001 BTC to Bob, Alice makes an HTLC payment to Bob contingent on the secret for the payment hash within a timelock ...
Subhra Mazumdar's user avatar
3 votes
2 answers
913 views

Lightning Network: How was the maximum allowed HTLCs in flight computed?

The maximum acceptable max_accepted_htlcs (maximum number of HTLCs forwarded concurrently) is specified by the BOLTS as being 483. How was this value chosen ?
Guillaez's user avatar
3 votes
1 answer
774 views

Is it possible to generate an invoice for my lnd without having a connection to my lnd?

Is it possible to set up a merchant site where: The customer facing website generates valid lightning invoices, given some kind of master public key, that it gives users to pay The actual lnd server ...
ieatpizza's user avatar
  • 2,068
3 votes
1 answer
724 views

Lightning Network : Pay a Bolt11 Invoice in multiple Payments

Is there a way to pay one Bolt 11 Invoice in multiple payments with Lightning Network? For instance this invoice total amount to pay is 5000 satoshi: ...
Hugo Doyon's user avatar
3 votes
1 answer
221 views

Lightning Network `channel_update` message Flag clarification

This is a lnd.log line: 2019-01-11 12:20:13.904 [DBG] PEER: Sending ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=601495532567724033, flag=...
Stefano Angieri's user avatar
3 votes
1 answer
1k 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 ...
Patoshi パトシ's user avatar
3 votes
1 answer
227 views

Can I run LND without ZMQ?

The documentation for LND says: ; ZMQ socket which sends rawblock and rawtx notifications from bitcoind. By ; default, lnd will attempt to automatically obtain this information, so this ; likely won't ...
Zephyrus's user avatar
  • 782
3 votes
1 answer
92 views

What is involved in the "database compaction" of a LND node?

As lightning network channels route payments, channel updates require the 2 channel peers (Alice & Bob) to do a round of signing and trade commitment transactions for the most up-to-date channel ...
oz21m's user avatar
  • 107
3 votes
1 answer
629 views

How can you construct a cycle with LND to rebalance one of your channels with another? [duplicate]

I have at least two open channels, one of which has inbound capacity and the other has outbound capacity. How can I find a route and construct a payment to rebalance my channels against each other ...
Murch's user avatar
  • 75.4k
3 votes
2 answers
3k 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, ...
arshbot's user avatar
  • 1,778
3 votes
1 answer
30 views

What are the maximum amounts one can fund an unnegotiated channel across various lightning implementations?

It is 0.16777215 BTC for Core Lightning. How much is it for LDK, LND and Eclair? P.S. If there exist any other implementations that I've left out in this question, the mention of them is most welcome ...
John Smith's user avatar
3 votes
2 answers
297 views

Automatic force closure and on chain settlement of expired HTLC

After roughly a month of mostly smooth operation a lightning node (LND 0.16.2-beta) automatically initiated a force closure of a channel. Two days later an expired HTLC was settled on-chain. In both ...
Andreas's user avatar
  • 41
3 votes
1 answer
144 views

Lightning: why don't balances add up to capacity?

I've created a brand new lightning channel with two nodes. I loaded the channel with "capacity": "1000000", but "local_balance": "999056". I know that "...
user339946's user avatar
3 votes
1 answer
3k views

Setting up lightning with bitcoin-core

I have some questions about bitcoin-core and lightning-network-daemon. I have succesfully set up a bitcoin node running on Ubuntu Server 20.04 by following this tutorial: https://bitcoin.org/en/full-...
user avatar
3 votes
2 answers
1k views

LND funding transaction stuck in mempool due to low fees

I have a funding transaction stuck in mempool due to low fees. Searchng around I have find that there is "BumpFee" wallet option to push your transaction. i have tried in this way: ~$ lncli wallet ...
Butta's user avatar
  • 41
3 votes
1 answer
436 views

How does the 'queryroutes' function in lightning's LND calculate the route fees?

I am testing my own routing implementation and for some weird reason a handful of channels reject my payment stating InsufficientFee. The scenario is A -c1-> B -c2-> C whereby Node A is ...
Oonah's user avatar
  • 95
3 votes
1 answer
377 views

How do I prevent lnd from participating in new channels?

I have a lnd node that I would like to to cycle down completely. I would like to close all its channels and prevent that the node participates in any new channels while I'm waiting for the force-...
Murch's user avatar
  • 75.4k

1
2 3 4 5