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
0
votes
1answer
23 views

LND doesnt create macaroons or directories

I installed lnd and got to the point of creating a wallet with "lncli create" but I get an error "unable to read macaroon path" and gives the path of where the macaroon should be. ...
1
vote
1answer
21 views

Problem with the first Initialization of my LN node, dial tcp my-external-ip:9735: connect: connection timed out

Background I was following 402 Payment Required's LN video and everything was good until the moment of the first Initialization of my LN node. I got an error: dial tcp my-external-ip:9735: connect: ...
1
vote
0answers
22 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 ...
1
vote
1answer
32 views

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

Given a channel that exist between Alice and Bob, where Alice wants to transfer 0.0001 BTC to Bob. Alice makes HTLC payment to Bob contingent to the secret for the payment hash within a timelock of ...
1
vote
1answer
36 views

How can wallet software implement automatic channel management for Lightning Network?

If I'm building a desktop Bitcoin wallet with Lightning support, and I don't want the user to have to worry about channel management, what's the way to achieve that? I've seen the autopilot solutions ...
1
vote
1answer
37 views

Reuse of payment hash in Lightning Network

Suppose there exist two such payment transfer request: A transfers 1 msat to R via A->B->C->R and S transfers 5 msat to R via S->B->C->R. Let the two HTLCs be formed across both the paths ...
2
votes
1answer
22 views

what is the macaroon max length

In an LND node, what is the max size, in bytes, of a macaroon. If there is no explicit max length, what can you reasonably expect to be the size of your macaroon?
0
votes
1answer
26 views

Transaction size limit across a single path in a Lightning Network and fee earned

Given MPP is included in the current version of lnd, an arbitrarily large transaction can be processed in the network. What is the transaction size limit across a single path? Is it still bounded to 0....
1
vote
1answer
25 views

Run lightning-charge on c-lightning regtest

I'm trying to run lighting-charge (https://github.com/ElementsProject/lightning-charge) on top of one of my 2 lightning (https://github.com/ElementsProject/lightning) instances. I am running 2 nodes ...
1
vote
1answer
53 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 ...
0
votes
1answer
35 views

Converting NodeID and BitcoinKey from Lightning Network (LND) logs

From the LND logs I have something like this (I changed some characters for privacy): NodeID1: ([33]uint8) (len=33 cap=33) { 00000000 02 19 8b 61 42 18 89 24 74 fc 95 ed 64 c4 77 91 |.9.a@(.$t......
3
votes
1answer
92 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....
-1
votes
2answers
44 views

Calculation of max_num_htlcs on Lightning Network

Why max_num_htlcs on lightning network is 483? I read the BOLT specification, but i can't understand the calculation. What is the 'maximum standard weight'? Does anyone explain the calculation? Plz ...
0
votes
1answer
45 views

Receiving payment on Lightning Network with LNBig as initial funder?

I was able to open a channel to myself from LNBig and withdrew 100 sats from Reddit's lntipbot. This appeared to be successful! Output of lncli channelbalance: { "balance": "100", "...
0
votes
1answer
48 views

Lightning Network LND - Retrieve payment by hash

How do I get an outgoing Payment by paymentHash using LND REST API? I know that GET /v1/payments returns all payments, but I would like to get one in particular, not all as there may be thousands. ...
1
vote
0answers
177 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 ...
0
votes
1answer
80 views

What is the 'tlv_payload' in lnd route?

When creating a custom route, if you use the queryroutes from lnd it sometimes with tlv_payload set to either True or False. How does the node figure whether to set this flag? I cant seem to find ...
6
votes
2answers
228 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 ...
0
votes
1answer
55 views

Lnd - how to open a double-funded channel

I know about lncli openchannel, however this means I will open a (bidirectional) channel with my peer, but initially just my side will have some balance. Let's say I agree with a collegue running ...
1
vote
1answer
112 views

How to connect LND to bitcoind RPC with authentication cookie stored in a custom folder?

I configured bitcoind RPC to authenticate clients with an authentication cookie. However I cant figure out if it's possible to use this method with lnd while connecting to bitcoind RPC. I would like ...
2
votes
1answer
77 views

Lost funds on my lightning node?

I've been using lightning network daemon (LND). In an effort to have a balanced node with somewhat equal amounts on both side of my channels, I've sometimes opened channels with the command lncli ...
2
votes
1answer
45 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 ...
2
votes
1answer
132 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 ...
4
votes
1answer
145 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 ...
2
votes
2answers
72 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-...
7
votes
1answer
308 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 ...
2
votes
1answer
73 views

How does lnd make sure it does not reuse the same route twice 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
1answer
253 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 ...
0
votes
1answer
138 views

How can I generate preimage for lightning network invoice? Should I?

I'm developing API library for LND REST API. Method POST /v1/invoices requires r_preimage parameter. Should I generate it or LND can do it itself if I'll not specify it? If I should do that - how to ...
3
votes
1answer
52 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 ...
8
votes
2answers
370 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 ...
1
vote
0answers
41 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 ...
1
vote
1answer
60 views

For how long has a channel been inactive?

I would like to close channels for which there is enough evidence that the remote node disappeared and won't come back. So my idea was to check for how long a channel has been inactive, and if it is > ...
0
votes
2answers
101 views

A couple questions on lightning network

I want to develop Exchange where people would use my service to make payments using lightning network I configured the LND node and created a wallet. To implement this I would like to allow users to ...
3
votes
1answer
99 views

How can I send a payment to myself with lightening to rebalance 2 channels?

I have an active channel with bitstamp with a balance on my side. Bitstamp has an active channel with lightening power users (lpu) with balance on their side (I checked this with lncli queryroutes ...
2
votes
2answers
390 views

Can I send/receive payments but prevent forwarding payments in Lightning Network?

Say I am using a very computationally constrained device (eg. a sensor) and it uses Lightning Network to send/receive payments. However, being computationally constrained it doesn't want to forward ...
3
votes
1answer
104 views

What are the potential security issues when running a Lightning Node on my home network?

If I was to run a lightning node on my home network (and for example, not running the node through TOR), what should I worry about? Furthermore, what OS, settings and software should I use to ...
0
votes
1answer
262 views

How to find out if LND opening pending channels has a confirmation onchain?

After typing lncli pendingchannels I get a channel_point number, and when I put channel_point txid to check if it was confirmed onchain by typing: bitcoin-cli gettransaction "txid insert" I get an ...
3
votes
1answer
140 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: ...
0
votes
1answer
80 views

Can't receive payments from htlc.me

Am testing LN with lnd 0.7 and autopilot on my testnet node I can pay successfully invoices created by htlc.me But when trying to receive payments, example : ...
1
vote
1answer
417 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?
1
vote
0answers
174 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 ...
2
votes
1answer
135 views

How to get the outbound and inbound capacity of a node using LND?

I expected to find an option on lncli to get the exact inbound and outbound capacity of my node, but this is not the case. What is the best way to have this information?
0
votes
1answer
150 views

Creating multiple clients inside a single lnd node

I am trying to create hot wallets using the lightning network but I don't want to create a new node for each user. Is there a way to have multiple users be able to use a single lnd node?
2
votes
1answer
202 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: ...
1
vote
1answer
73 views

invoice amount is 1200000 but I paid 1201035. What is 1035?

I paid the invoice and then I noticed I paid more than the amount of the invoice. 1201035 (I actually paid) - 1200000 (the amount of the invoice) = 1035 (?) My questions are.. What is 1035 satoshi? ...
1
vote
1answer
208 views

LND How to reset pending_open_channels?

I am using LND (most recent version 0.6.1-beta) and I have a lot of pending channels in state pending_open_channels which are stuck for many days (perhaps because of low fee and full mempool) so I ...
0
votes
1answer
83 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
1answer
157 views

Running LND on testnet and mainnet at the same time on the same pc

I have two instances of bitcoind running, one on mainnet, one on testnet, without any problems. I can't seem to find any decent documentation on running two instances of LND at the same time on the ...
1
vote
1answer
473 views

lnd SendPayment “unable to find a path to destination”

I got an error "unable to find a path to destination" when I call SendPayment to an invoice, created at starblocks.acinq.co, from my local private LND node on mac (docker). It seems getinfo and ...