Stack Exchange Network

Stack Exchange network consists of 174 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]

Proposed payment system leveraging payment channels which allow re-negotiation of balances that finally get executed on the Bitcoin blockchain.

1
vote
1answer
23 views

Lightning Network: node image

When browsing explorer.acinq.co, I noticed some nodes display an icon image in front of their name. How can I configure such an icon for my own node with LND?
0
votes
3answers
34 views

How to “cash out” of the Lightning Network without closing channels?

I am working on an ecommerce site that accepts lightning payments and was curious about how to "cash out" to pay vendors without closing channels to customers. I was planning to run two LN LND nodes ...
0
votes
1answer
20 views

How to close stale lightning channels with c-lightning

I was running a lightning node using c-lightning about 9 months ago. Unfortunately the server was shutdown while a few channels were open. I have restarted the server and updated c-lightning to the ...
0
votes
1answer
27 views

Remote SSH connection to Raspibolt Lightning Network Node

I am trying to establish a remote SSH session using Putty into the Raspberry Pi running my Lightning Network node without success (connecting from the local network works fine). The related port of ...
1
vote
2answers
306 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, ...
0
votes
2answers
32 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
27 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 ...
1
vote
1answer
27 views

What is a good hardware for a lightning network node?

What is the hardware setup you use for your LN node? Is a Raspberry Pi 3 enough for testing and playing with small amount of funds?
2
votes
1answer
66 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 ...
0
votes
1answer
17 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 ...
2
votes
1answer
52 views

Lightning, multiple channels to the same node

With LND, you can open multiple channels to the same node. Is there any advantages to having multiple channels (to the same node) versus having one channel? Eg. one channel with a capacity of 1 000 ...
0
votes
2answers
51 views

Implementation of tokens/assets/colored coins on top of bitcoin lighning nodes / channels?

I'm trying to research how tokens or colored coins would work on top of bitcoin lightning channels / nodes. Has any project tried to build token issuance on top of the Bitcoin lightning network? How ...
3
votes
1answer
123 views

How does channel factory act?

I am reading paper named "Scalable Funding of Bitcoin Micropayment Channel Networks". If Alice, Bob, and Charlie created a channel factory, I thought that only these three people can make a payment ...
0
votes
1answer
36 views

Are Tor .onion-addresses IP address independent?

Is it possible to move the node to a different IP address and keep the existing (=preciously open and funded) channels functional?
1
vote
3answers
35 views

Lightning: Why would Bitcoin Network Accept a Breach Remedy?

The Lightning Network Whitepaper discusses a situation in which one party of a payment channel broadcasts an outdated commitment transaction. The other party through a breach remedy transaction will ...
2
votes
3answers
89 views

Does a LN route with N channels at most require N-2 fee payments?

Assume we have a route n1 -> n2 -> n3 -> n4. My intuition here is that n2 charges n1 a fee and that n3 charges n2 a fee for routing payments. However, there's no fee for the last hop where n3 ...
1
vote
1answer
23 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 ...
0
votes
1answer
31 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
21 views

Is there a guide to set up and use http://lndhub.io

on top of raspibolt or raspiblitz? My goal is to support multiple LN clients without having to run a full node for each client.
0
votes
2answers
33 views

How could LN mitigate NAT transversal problem?

As we all know, IPv4 address space is already exhausted, many ISPs have deployed carrier grade NAT (CGN). So how could an LN node living behind NAT deal with NAT transversal problem? How could two ...
1
vote
1answer
36 views

Lightning Network: Isn't there a risk in spending more BTC than needed?

Say, I want to establish a payment channel with an individual, Jim. I want to make 10 monthly payments of 0.01BTC to him for a total of 0.1BTC. I don't want to spend 0.1BTC at once, but in order to ...
0
votes
1answer
17 views

where can i do a testnet Lightning Network Reverse Submarine Swap?

i have Testnet LN Node, i have created a wallet, i have send on-chain funds to that wallet i have connected to several peers i have created several channels, all of these are outgoing one side funded ...
1
vote
1answer
23 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 ...
0
votes
1answer
20 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 ...
3
votes
1answer
82 views

What languages can I write plugins for c-lightning in?

I know that there's a Python library available for writing plugins for c-lightning. What would I need to do to for example use a JVM language like Scala?
0
votes
1answer
64 views

Do extra hop channels in a BOLT#11 invoice need to exist on chain?

According to the BOLT#11 specification, a node may add extra routing information for private channels to an invoice, where they specify the public key of the penultimate hop, along with the ...
4
votes
2answers
645 views

Receiving payment in Lightning Network is a big problem?

There are some requirements to receive Lightning funds. According to here, Nothing can be received immediately after creating a new payment channel, as ‘room’ for incoming funds has to be made by ...
2
votes
1answer
23 views

Checking whether lightning node is online/visible

I just created my first lightning node and already have one active connection. My problem is however, that I do not see my node in any lightning network explorer. Is it possible to somehow check ...
1
vote
2answers
69 views

Clarification about lightning network

When I run a lightning node, I have to set up a lightning channel with, for example, a highly connected node. Here a first question: When I set up a lightning channel with a node, have I need to put ...
0
votes
1answer
120 views

Lightning network routing failure rate

Let's say a lightning node A wants to route a payment to a lightning node B, being A and B not directly connected.A looks for routes throughout the network, using the info about the total capacity of ...
2
votes
1answer
24 views

C-lightning Implementation password protect hsm while maintaing node access

I was wondering if there was a way to encrypt the folder that contains the hsm_secret (and a lot of other operational files necessary for constant operation of a C-lightning node) without cutting it ...
0
votes
1answer
30 views

Why is the obscured commitment number necessary in lightning commitment TX's?

The obscured commitment number for each commitment transaction is the lower 48 bits of: SHA256(payment_basepoint from open_channel || payment_basepoint from accept_channel) It is encoded in the lock ...
0
votes
1answer
49 views

“state channel” v.s “micro-payment channel” : are they the same?

We use "micro-payment channels" such as "Bitcoin Lightning Network" or "Duplex Micro-Payment Channels" for saving transaction fee, accelerating payments, supporting better micro-payment and scaling ...
4
votes
2answers
341 views

Why was transaction malleability fix required for Lightning network?

Transaction malleability is that TXID can be changed modifying the signature slightly without the private key. To implement Lightning Network, it was required to fix the malleability. However, I ...
0
votes
0answers
12 views

LND not showing URI

LND seems to be running ok, i opened several channels and paid for a couple of things already, first couple of days i could see all the info regarding my node but since yesterday my uri just ...
1
vote
2answers
72 views

Are channel ids inherently linked to node ids in the Lightning protocol?

I'm wondering if it is possible to shut down my node, change my node id, but persist my channels in the Lightning protocol. Is there an inherent limitation to the protocol that prevents this from ...
0
votes
1answer
61 views

Ownership of private keys in the Lightning Network

My question refers to the technical side: who is holding the private keys if a third party is using my lightning node to participate in the Lightning Network payment channel ? Thank you
2
votes
2answers
96 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 ...
0
votes
0answers
27 views

how connecting lnd to btcpayserver

status: lnd on raspberry pi / daily changing ip-address / btcpayserver on vps problem: i want to connect my lnd-node to my btcpayserver. i have to put my url with https in the required field, so i ...
1
vote
1answer
23 views

Lightning?full node question

I'm running a full node as well as a Lightning Node with 4 channels open. I also have incoming ports enabled. I've noticed that my balance varies daily by a few thousand Sats. I'm new to running a ...
0
votes
1answer
38 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 ...
0
votes
2answers
62 views

How to fund a bidirectional payment channel?

Assuming two users want to create a bidirectional channel between themselves such that user_1 wants to pay 2 BTC to user_2 at the end and he divides this amount into 10 micro-payment (each micro-...
0
votes
1answer
49 views

How to fund a bidirectional channel in Lightning Network by two participants? (Edited)

I brought up a similar question here: (Link to question) for a payment channel (in general case and without specifying which payment channel implementation.) Since this funding channels depends on the ...
-1
votes
1answer
168 views

Removing “hub-and-spoke” property of Lightning Network?

Lightning Network is based on this idea: "Near-zero fee transactions with hub-and-spoke micropayments" (Link to the article) proposed by Peter Todd. An article entitled: "Mathematical Proof That the ...
0
votes
1answer
26 views

Lightning Network wallet applications for different operating systems?

What are the best / most secure wallet applications of Lightning Network for each of following operating systems/platforms ? Windows Mac OS android iOS web browser extensions
0
votes
1answer
22 views

meaning of “full node” in Lightning Network?

According to this answer: (Link to answer), "A 'full node' refers to a fully validating node on the Bitcoin network, meaning the node validates each block and transaction that happens on the ...
1
vote
1answer
53 views

Is it possible to run two Lightning Network nodes on top of single Bitcoin Core node?

I would like to simultaneously run LND and Eclair nodes on top of single Bitcoin Core bitcoind node. Is it possible? I wasn't been able to pull it off so far. If possible, how to set up ZMQ and ...
0
votes
2answers
30 views

Connecting to a node and opening a channel

What is the difference between connecting to a node and opening a channel with a node in the lightning network? What are the events happen when I just connect to a node?
2
votes
1answer
18 views

High level description of modern Lightning network (as per BOLT)

The Lightning network specification (BOLT) differs substantially from the original Lightning network paper (some of the differences outlined in this SE answer). Is there a document with a high-level ...
7
votes
3answers
3k views

How are fees determined in the Lightning Network?

How are fees determined in the Lightning Network? For transactions that occur on chain, fees are determined by the availability or demand for space in node's mempools. How are they determined in the ...