Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
2 votes
1 answer
90 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?
0 votes
1 answer
54 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 ...
3 votes
1 answer
180 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/...
1 vote
0 answers
20 views

I'm unable to be fully synced with the lightning network

I currently have a pruned Bitcoin Core node running on my Mac, and I have lnd running too. Everytime I run lnd, I get flooded with these error messages in terminal: Query from peer ...:8333 failed, ...
0 votes
0 answers
16 views

BTC to LND Node Transfer Not Showing yet on node's wallet after almost two weeks?

I realize that this may or may not be a question to ask of the Umbrel developers but I have to sadly report to you all that they rarely answer any posts on their forum. Please help us with this ...
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 ...
4 votes
0 answers
171 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 ...
4 votes
3 answers
110 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 ...
0 votes
1 answer
595 views

LND describegraph and getnetworkinfo RPC response

The LND API documentation is here, but doesn't contain much information about what the responses to various calls mean. Can anyone explain what these responses are describing? describegraph['edges'] ...
3 votes
2 answers
921 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 ?
1 vote
0 answers
13 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 ...
0 votes
1 answer
58 views

Lightning Network channel reserve

How is the calculation of the amount of sats reserved to pay fees in L1 in case of having to launch a penalty transaction or make a forced closure of a channel? In bolt2 I have read that 1% of the ...
3 votes
1 answer
32 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 ...
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-...
3 votes
0 answers
520 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@...
2 votes
1 answer
43 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 ...
0 votes
1 answer
81 views

How to encode for LND `/v2/signer/verifymessage`?

Talking to just one node (baby steps), I want to call /v2/signer/verifymessage giving the output of lncli signmessage "Hello, Jessica". On the alice node on Polar, I get: ...
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 ...
1 vote
1 answer
147 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 ...
2 votes
2 answers
409 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 ...
3 votes
1 answer
140 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 ...
0 votes
0 answers
31 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 ...
0 votes
0 answers
24 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 ...
2 votes
1 answer
734 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
1 answer
70 views

bech32 serialized lightning invoice from lnd rest endpoint /v1/invoices

I am using the LND Rest API to create an invoice. As response I get something like {'r_hash': 'Wchr...E=', 'payment_request': 'lnbc210n1p....z9s', 'add_index': '4', 'payment_addr': 'Lyn...50=' } ...
1 vote
1 answer
216 views

Sats stuck in "pending" after lightning channel force closure

I had a lightning channel force close because the other node went offline. Its now been 24 days yet the on chain sats are still stuck in "Pending" status and can't be spent. This is the ...
2 votes
0 answers
21 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 ...
0 votes
0 answers
28 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(...
1 vote
0 answers
43 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 ...
2 votes
0 answers
32 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 ...
0 votes
0 answers
67 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 ...
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.
3 votes
0 answers
156 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 ...
2 votes
1 answer
87 views

Why might my db be locked on starting bitcoin-qt after a clean shutdown and reboot?

I have LND v.16.2 running under Windows 10 with Bitcoin Core 23.0 on same machine. When I need to reboot, I gracefully stop my LND node and close bitcoin-qt from the GUI, waiting until it has ...
1 vote
1 answer
35 views

How can I update lnd to 0.17 on Windows?

I am running lnd 0.16.2 on a Windows 10 system. I just downloaded v0.17. Can I just drop the new files lnd.exe and lncli.exe into my directory and run on the same install? Any tweaks needed?
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 ...
4 votes
1 answer
186 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 ...
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 ...
3 votes
1 answer
233 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 ...
2 votes
0 answers
66 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 ...
1 vote
0 answers
70 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 ...
1 vote
0 answers
83 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 ...
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, ...
0 votes
0 answers
54 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 ...
0 votes
0 answers
89 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 ...
1 vote
0 answers
150 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&...
0 votes
1 answer
188 views

RPC for LND: rpc_pb2_grpc vs lnd_grpc

I'm trying to automate launching multiple LND instances with a Python script. I've been trying to use lnd_grpc but can't get it to work. I created an issue in the LND repository and was pointed ...
0 votes
0 answers
100 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, ...
2 votes
1 answer
119 views

How does Lightning multipart payments (MPP) protocol define the amounts per part?

From the source code of LND, payments are split in half and retried if no path for the full amount is found: func (p *paymentSession) RequestRoute(maxAmt, feeLimit lnwire.MilliSatoshi, ...
3 votes
2 answers
306 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 ...

1
2 3 4 5