Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

6
votes
1answer
1k 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.
5
votes
1answer
908 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. ...
5
votes
1answer
52 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 ...
4
votes
1answer
81 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 ...
4
votes
1answer
241 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 ...
3
votes
1answer
231 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. ...
3
votes
1answer
80 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=...
3
votes
2answers
170 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 505580:1917:1; Channels from the ...
3
votes
1answer
590 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 ...
3
votes
1answer
37 views

Betweeness Centrality LND node

How can one calculate betweeness centrality of your node as mentioned in that video. I would like to take into consideration base_fee_msat fee_rate Is there a smart way to figure out what suites ...
3
votes
2answers
276 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 ...
3
votes
1answer
137 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 ...
2
votes
1answer
116 views

How is node capacity determined on 1ML.com?

I have set up a Casa node, using lnd, and opened 15 payment channels. The capacity of my channels, after almost 3 weeks, is exactly what it was when I opened the channels, leading me to believe that I ...
2
votes
1answer
135 views

Share balance between lnd and bitcoind

I have a bitcoind instance with some balance. When I run lnd (which is connected to this bitcoind instance) it seems to use its own wallet. Is there any way I can use lnd with the bitcoind balance ...
2
votes
1answer
54 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 ...
2
votes
1answer
27 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?
2
votes
1answer
505 views

Lightning Wallet (lnd) - Export Private/Public Keys?

Is it possible to export keys from a Lightning Wallet, specifically lnd? I started opening my first channels, and most of what I'm reading says that you want to monitor your wallet balance (in the ...
2
votes
1answer
298 views

LN channel lnd + android wallet problem

I am running LN node powered by lnd. Also I have installed on my phone a LN app - Bitcoin Lightning Wallet. I opened a channel from mobile app to lnd node sucessfully (many confirmations), but I ...
2
votes
1answer
43 views

LND errors after upgraded to v0.5.2

Recently upgraded to the latest lnd version (following the stadicus guide) but once i restarted the client i keep getting this error when i check the logs: [ERR] LNWL: Failed to process consensus ...
2
votes
0answers
88 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 ...
1
vote
1answer
160 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 ...
1
vote
1answer
78 views

Why is my LND node closing channels?

I have noticed when running lncli closedchannels, that I have some channels that are closed by my node (close_type: local_force_close). I am quite sure I have not initiated this manually myself. Is ...
1
vote
1answer
69 views

How to send payment through a predefined route?

Attempting a payment through a predefined route using: lncli -network=testnet queryroutes 02e34c1b4c5f8e7419cf4d10e3bc9651d46dc1af68df6a7b81a24951a9192aa9c4 25000 | lncli -network=testnet sendtoroute ...
1
vote
2answers
806 views

My lnd node hasn't routed any payments (1 week + since initial setup)

So I finally setup a lightning node (lnd) and according to "feereport" I haven't routed any payments (no fees collected). I have used my node to send payments (yalls, satoshis.place, blockstream...) ...
1
vote
1answer
42 views

How do I get credentials on the bitcoin network?

I'm setting up an LND node so I can learn about Lightning Networks. I apparently need a set of user credentials so that I can connect to the network. How do I get the credentials that I need to set ...
1
vote
3answers
38 views

What does channel num_updates mean?

Some LND wallets provide a channel's "Number of Updates". Here's an example from Zap Desktop: The LND gRPC API Channel Reference cites a property called num_updates. The description of this field is ...
1
vote
1answer
30 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 ...
1
vote
1answer
29 views

How can channel policy be missing?

I randomly stumbled upon an example of a channel for which one of the two sides does not have a channel policy. What could be the reason for that? For example, lncli getchaninfo 620048691895336960 ...
1
vote
1answer
50 views

I can pay invoices on my mainnet LND node, but others cannot pay my invoices

I have an LND node running the 0.5.2-beta release on a 2 core, 8GB ram Ubuntu 16.04 VM. This is my node: https://1ml.com/node/02d5efae50c1cdc6011e40b74f061ea4f444088865ec14a59e4ee6cf0d71c842fc I used ...
1
vote
1answer
105 views

Minimum funds required in a channel in Lightning?

I have noticed that, I cannot exhaust the funds in my channel to one side in lnd. I understand this makes sense so as to have some punishment in case of fraud, but I cannot find the reason for the ...
1
vote
1answer
133 views

rpc error: code = Unknown desc = dial tcp 103.102.44.207:9735: connect: connection refused

I'm getting connection refused when I try to connect to a public testnet node. lncli --network=testnet connect 022ff54505fe9b50ce6c3c99c645c9aab67fe91abb01504c5211045b82a09aa757@103.102.44.207:9735 ...
1
vote
1answer
33 views

What are the consequences if I spoof an IP address in the node_announcment message?

According to BOLT 07 the node accountment message looks like this: type: 257 (node_announcement) data: [64:signature] [2:flen] [flen:features] [4:timestamp] [33:node_id] [3:...
1
vote
0answers
82 views

how can i get rid of a zombie channel in LND?

My LN-Node: 023bf99414b3e93ab7463ce60f44cd691f8be3c1ae33a2015fe784c85c36e770cf bitcoind 0.17.1 // LND 0.5.2-beta commit=v0.5.2-beta-rc7 Channel: 598078250466476032 Problem: lncli feereport returns: ...
1
vote
0answers
28 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 ...
1
vote
1answer
93 views

lncli pendingchannels output: difference between `pending_closing_channels` and `waiting_close_channels`

When plotting lncli pendingchannels, two of the outputs are oddly similar: pending_closing_channels and waiting_close_channels. I have only seen my closed channels either as the output closedchannels ...
1
vote
2answers
545 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, ...
1
vote
1answer
198 views

Failed to start lnd.service: Unit bitcoind.service not found. (lnd installation)

I installed my bitcoind and lnd correctly. I put my datadir=/mnt/vdb to bitcoind.conf file and it allows me to start bitcoind with this command: bitcoind -daemon. As a final step, I want to learn lnd ...
1
vote
1answer
65 views

How can I see what is bitcoin tx for pending Lighting channel (lnd)

When I open a new Lightning channel from lncli I get the blockchain tx hash back. But afterwards how can I find this hash later on, if the channel is still pending state? lncli pendingchannels does ...
1
vote
1answer
266 views

ZeroMQ support in Bitcoin Core 0.16.0 out-of-the-box?

In my previous question, I'm wondering why Lightning Networks lnd cannot talk to my Bitcoin Core bitcoind backend. The docs for lnd says it requires ZeroMQ compiled into bitcoind. Does the binary ...
1
vote
1answer
165 views

What are the issues of running lightning daemon with pruning node?

Most lightning implementations I came across don't officially support pruned full node. Why is pruned mode implementation a challenge? What risk am I taking when I run lnd with pruned bitcoind?
0
votes
2answers
49 views

Is there anything preventing Lightning Network from passing embedded data in OP_RETURN?

As long as you pay a BTC fee for all the routing node incentives and the last layer in the onion routing includes a transaction with OP_RETURN, wouldn't that allow using OP_RETURN for various ...
0
votes
1answer
66 views

How to send a payment through a route saved in a json?

From lncli network=testnet sendtoroute -h: NAME: lncli sendtoroute - send a payment over a predefined route USAGE: lncli sendtoroute [command options] [arguments...] DESCRIPTION: Send a payment over ...
0
votes
1answer
410 views

How to create bidirectional channels using LND?

I created a channel with following command. But its not bidirectional by default. lncli openchannel --node_key=02cdf83ef8e45908b1092125d25c68dcec7751ca8d39f557775cd842e5bc127469 --local_amt=390000 ...
0
votes
1answer
16 views

Does the `HTLC fail` routed back to sender using same path if intermediate node does not have enough capacity?

In the Lightning Network, the intermediate hop between the sender and receiver checks for possible errors(like if it has enough balance). And if there is, it sends an HTLCFail message back to the ...
0
votes
1answer
34 views

Lightning node on a Bitcoin SPV

is there a way to run a Lightning node on a Bitcoin SPV node at the moment? I've read that both lnd and c-lightning need a Bitcoin Fullnode at this time. This might seem ignorant but i don't want to ...
0
votes
1answer
13 views

Lightning payments: peer versus channel (LND)

I understand that in order to be able to send a LN invoice my node should be connect to at least 1 channel. Should both nodes have an equal "stake" in the channel? Is it correct that it isn't ...
0
votes
1answer
36 views

`lnd` on Raspberry pi zeros?

Did somebody try to run the bitcoind full node on the Raspberry pi 3 and one or more lnd nodes on one or more Raspberry pi zeros? My goal is to support multiple LN clients without having to run a ...
0
votes
1answer
144 views

How to set up LndHub on top of RaspiBolt ir RaspiBlitz?

My goal is to support multiple LN clients without having to run a full node for each client. How to set up LndHub on top of RaspiBolt or RaspiBlitz?
0
votes
1answer
62 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 ...
0
votes
1answer
55 views

How to completely remove Bitcoin Lightning from Raspberry Pi

I finished the installation of Bitcoin Core and Lightning but somehow i messed up with the certificates and the creation of the wallet and now im struggling to run lightning with the right users and ...