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.

60 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
0 answers
518 views

Lightning Network Nodes do not report Bolt9 Features

Looking at the output of the describeGraph command of my node (LND), I have seen that my node detects approximately 19,000 nodes. Of those 19 thousand, 6 thousand do not report any bolt9 feature. lnd@...
polespinasa's user avatar
3 votes
1 answer
158 views

How to avoid a force closure of a channel in the future

On May 14th our channel with LNBIG-42 was force closed and has only returned to the wallet minus some fees a few days ago. https://mempool.space/tx/...
Orange_Bitcoin's user avatar
3 votes
0 answers
76 views

How to track down OOM?

Since a while LND on m Bitcoin Node is restarting weekly a I get an OOM: Feb 12 21:07:24 umbrel kernel: node invoked oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0 Feb ...
deekee's user avatar
  • 51
3 votes
0 answers
196 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 ...
Zephyrus's user avatar
  • 782
3 votes
0 answers
151 views

Lightning Network snapshot via lncli describegraph only includes 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 ...
Mike Nash's user avatar
3 votes
0 answers
1k views

LND Port 9735 still closed after setting up port forwarding and firewall

I have set up my bitcoin/lnd full node and would like to have it run as a routing node for the network. So I have opened my port 9735 from the router and allowed access to it in my firewall (ufw on ...
Stelios Rammos's user avatar
3 votes
1 answer
139 views

Finding paths NOT originating from you with lnd

I'm interested in finding paths from senders whose node you don't run to potential receivers. According to https://api.lightning.community/?python#queryroutes , you can do that by specifying the ...
George's user avatar
  • 31
2 votes
0 answers
19 views

Are there internal 1sat invoices in LND?

Every day I find several (like 3) amount=1 sat invoices in my lnd's listinvoices. These invoices have an empty payment_request, a zero expiry, an empty description_hash etc. Is this kind of a health ...
Rainer Feike's user avatar
2 votes
0 answers
31 views

How to implement Just in Time Routing on our lightning node

Can anyone here tell me how to implement "Just in Time Routing" for our lightning node? We are running Umbrel for our node so if this is possible / feasible can it also be automated? Thank ...
Orange_Bitcoin's user avatar
2 votes
0 answers
61 views

LND how to recover abandoned channel

Years ago I used LND's abandonchannel command to abandon two channels, it was stupid and I didn't know what I was doing at the time. These are the only sats I ever lost. Ever since, whenever I use the ...
guy's user avatar
  • 31
2 votes
0 answers
29 views

Do payment trial and error attempts in LND use valid preimages?

In mastering the lightning network, the following paragraph describes a facet of pathfinding The pathfinding mechanism implemented in Lightning nodes is to first create a list of candidate paths, ...
arshbot's user avatar
  • 1,778
2 votes
0 answers
37 views

Balances do not add up to channel capacity

Using LND, I opened a channel with --local_amt=1100000 and --push_amt=500000. I would think that would open a channel with a capacity of 1100000, a local balance of 600000 and a remote balance of ...
Zephyrus's user avatar
  • 782
2 votes
1 answer
85 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?
user209474's user avatar
2 votes
1 answer
1k views

How to setup Lightning Node on Windows Desktop in 2022?

I have gone through setting up lightning node, but a lot of resources stated to get hardware and to run LND through command line. But How can we setup a Lightning node in regular laptop with nice GUI ...
Arjun Reddy's user avatar
2 votes
1 answer
40 views

EstimateFee - Invalid Length Destination Key

Background I have setup a regnet test network with two LND nodes. One to send money and the second (lnd2) to generate invoices on. I am writing code to simulate a mobile app. I'm currently trying to ...
btclibertarian's user avatar
2 votes
0 answers
331 views

Lightning Node (MyNode) gone missing. How to recover funds?

I had a RaspPi/MyNode with a few LND channels open. The node has unfortunately gone missing/stolen and I'm trying to figure out the best way to get the funds back. I have access to my seed words for ...
statusquont's user avatar
2 votes
2 answers
405 views

How does LND make sure that it does not reuse the same route for a retry after the first payment failed?

Suppose LND node A wants to send a payment to another node D. The pathfind algorithm based on Dijkstra found a route through B and C and initiates the payment. It fails, as B -> C does not have ...
wtho's user avatar
  • 183
1 vote
0 answers
11 views

Calculate total assets in a lnd

How can I calculate my total assets in a lnd? Something like the sum of "wallet confirmed", "wallet pending", "channels local balance", "channels pending local ...
Rainer Feike's user avatar
1 vote
0 answers
9 views

Node accounting - open source or bitcoin software

I am running a LND node. experimenting for other almost 2 years with it. i then started a small (2 persons) consulting company. this node is now used to go on building expertise and trying stuff. it ...
tepeji's user avatar
  • 11
1 vote
0 answers
40 views

LND per-commitment-secret derivation

For learning purposes I'm trying to recreate all keys in LND channel. I could reproduce MultiSigKey, RevocationBasePoint, PaymentBasePoint, DelayBasePoint, HtlcBasePoint. The workflow to reproduce ...
Pawel's user avatar
  • 91
1 vote
0 answers
33 views

Which are the default features enabled on the main three Lightning Network node implementations (LND, C-Lightning and Eclair)?

Which are the default features enabled on the main three Lightning Network node implementations (LND, C-Lightning and Eclair)? I mean the features shown when you use "describegraph" command.
Mani T's user avatar
  • 187
1 vote
0 answers
67 views

Max amount of peers connections on LND

I'm trying to connect to a long list of peers. I'm running a LND(0.17.0) node. My list has almost 1k peers and I can only connect to 6 of them. Is my node limiting the max connections? If so, is it ...
polespinasa's user avatar
1 vote
0 answers
59 views

What is the most successful method to automate circular rebalancing?

What is the most successful method to automate circular rebalancing? We have tried the Torq and the LNDG app but so far they both do not wotk for us so we are still performing manual circular ...
Orange_Bitcoin's user avatar
1 vote
0 answers
127 views

Transaction in local mempool not broadcasted further

I created a bitcoin transaction from lnd (lncli sendcoins), and it seems to be created successfully and I can see it in my local bitcoind mempool: bitcoin-cli getmempoolentry abdctxid { "vsize&...
Dmitry Laptev's user avatar
1 vote
1 answer
138 views

Force Closure of a channel with LNBig-42:

On May 14th our channel with LNBIG-42 was force closed. Not sure why but it could have been due to their node performing an update on the same day which caused a few other nodes to also have their ...
Orange_Bitcoin's user avatar
1 vote
0 answers
176 views

Link fails when building gRPC client for LND in C++

I'm trying to build a gRPC client for LND in C++, starting with the WalletBalance function. I've never used gRPC before, and I use make instead of cmake, but according to the documentation this is ...
Zephyrus's user avatar
  • 782
1 vote
0 answers
65 views

my LND is not 100% up and want to check how long can I stay offline in each open channel

I'm newbie and running LND and few channels. But my power supply is not stable and it goes offline many times in a week. sometimes even for 8 hours. How do I check if the time locks of my channels ...
thevikas's user avatar
  • 303
1 vote
0 answers
150 views

Difference in lightning network node/channel stats between my LND, what's shown in amboss and 1ml.com

When I run ./lncli getnetworkinfo I get the following: { "graph_diameter": 13, "avg_out_degree": 5.67523205795789, "max_out_degree": 117, "num_nodes&...
saiy2k's user avatar
  • 175
1 vote
0 answers
153 views

LND: How to use whole UTXO to open a channel?

How can I use an UTXO completely to open a Channel? Do I have to calculate the fees by hand to do this? If so, what would it be if I have a 1 million sat UTXO and set fees to 3sat/vB?
Luffy's user avatar
  • 11
1 vote
0 answers
298 views

Lnd invoice lookup

I am trying to get single invoice with GET /v2/invoices/lookup endpoint on LND REST API by its id as documented here: https://api.lightning.community/?javascript#v2-invoices-lookup. But whatever I do ...
Jan Husák's user avatar
1 vote
0 answers
380 views

Low cost option to run Lightning node in Cloud

I like to run a Lightning node and need some inputs. Providing Internet, Electricity 24*7 to my home system/Raspberry (Umbrel setup) is super challenging in my place. Like to know if running pruned ...
saiy2k's user avatar
  • 175
1 vote
0 answers
51 views

Procedure to recover BTC stuck in 2/2 Multisig

I opened a 2M Sat Channel and my peer should send me back 1M Sats Onchain, as I have pushed half. Now unfortunately, I’ve sent my peer the address of the 2/2 Multisig of the funding TX and not the ...
deekee's user avatar
  • 51
1 vote
0 answers
275 views

How to use one LND for multiple wallets

How to use one LND node for multiple independent wallets for different people?
thevikas's user avatar
  • 303
1 vote
1 answer
49 views

Does got any optimise method can swap/splice/loop channel without on-chain cost in lighting node?

if I got custom Node and Alice has 3btc and bob got 0btc and bob got 0btc with Tom 1 btc. Is it possible we can change channel for Alice 3btc with Tom 1 btc. And close Tom. And it doesn’t go to on-...
jkt's user avatar
  • 11
1 vote
0 answers
104 views

When commit_fee (fee_per_kw) renegotiation?

Looking at my channels on lnd node, fee_per_kw values are different for some channels (13332 or 6422). How is the fee_per_kw calculated when opening the channel? Does it take current bitcoin fees ...
Tony Sanak's user avatar
  • 1,689
1 vote
0 answers
74 views

Opening channel with whole wallet balance in LND

I was looking at help output of lncli openchannel and was wondering is there a way to open channel using whole current wallet balance, so that wallet balance minus opening transaction fee is commited ...
Kristaps Kaupe's user avatar
1 vote
0 answers
700 views

Bitcoin LND Lightning Network Daemon, pending open channel, opening transaction never confirmed

I'm running LND 0.7.0-beta on top of Bitcoind 0.18.0 and have a channel that has been pending on opening for more than a month now. It tried to open when I was still running LND 0.6.1-beta. The txid ...
user avatar
1 vote
0 answers
280 views

How to uninstall lnd on ubuntu?

lnd has been installed on my digital ocean droplet, but now I need to uninstall it as attempting to update it has corrupted the exec. How can I uninstall lnd on ubuntu?
arshbot's user avatar
  • 1,778
1 vote
0 answers
62 views

Lightning network (lnd): What's the best way to report lnd server issues/ask for help with channels that won't close?

I've been running a lnd/bitcoind node (mainnet) for a few months now. I had a couple open channels, made a couple purchases, things seemed pretty stable. But then I moved cross country, and in the ...
JTKirk's user avatar
  • 11
0 votes
0 answers
30 views

After re-install my fullnode (kept the btc and lnc data directories), previously ACTIVE ln channel stays Inactive

Reset my Node and reinstalled ALL softwares including lnd and Thunderhub. Now my bitcoin is running well, LND is running well. Thunderhub is also OK. but my previous opened channel is not Active. from ...
Nick's user avatar
  • 1
0 votes
0 answers
21 views

Having issues when starting Lnd. Lncli create command provides no output

I have lnd running on MacOs (m2 machine) with Bitcoind as a back end. Bitcoin is in my external SSD drive. When I start Lnd, I am able to get to the lncli create option, but the lmcli create command ...
Anasosadances's user avatar
0 votes
0 answers
24 views

LND per_commitment_secret

I'm trying to restore per_commitment_secret from channel.backup file (LND). What is the seed? Is the seed saved in channel.backup file? BOLT #03 per_commitment_secret calculation generate_from_seed(...
Pawel's user avatar
  • 91
0 votes
0 answers
65 views

Determine the amount to pay to send bitcoin from lnd (lightning network) to on-chain address

I am currently working on a project that requires multiple users using lightning network to generate and pay invoices through my website but I want to be able to calculate each user's transaction fee ...
Topman's user avatar
  • 11
0 votes
0 answers
47 views

What made the HTLCs pending here?

So today, i had 4 pending HTLCs to 2 nodes. The first 2 expired (i think i still had a connection to the peer), and the channel is now in force close state. The last 2 are still pending until expiry ...
bartoli's user avatar
  • 43
0 votes
0 answers
82 views

Lightning funding transaction unconfirmed by lncli after two weeks

After installing lnd on a Windows 10 machine and being able to do a first funding of 200ksats and a de-funding of 100ksats with on-chain confirmed transactions, I sent myself on-chain a larger amount ...
ondawoad's user avatar
0 votes
1 answer
48 views

How to go about performing invoice generation / payment processing with lightning network?

I am interested in implementing a micro-transaction "paywall" that will allow anonymous users access to a web application that I am building. Each unique visit to the home page of the ...
patrick's user avatar
  • 233
0 votes
0 answers
96 views

Failed Tls connection to LND with gRPC and REST using rust

I have been trying to connect to an LND node using Rust as a language. I have been constantly be given this error: tonic::transport::Error(Transport, hyper::Error(Connect, Custom { kind: InvalidData, ...
lescuer's user avatar
0 votes
0 answers
441 views

Failed to connect with gRPC to remote LND: failed to connect to all addresses unavailable

I want to connect to my LND running on a raspberry pi linux from my macOS with gRPC. On the raspberry pi is also a bitcoin full node running bitcoind regtest. I used this tutorial: https://github.com/...
Luca F's user avatar
  • 27