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.

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 ...
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
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 ...
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
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 ...
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?
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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?
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 ...
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 ...
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 ...
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
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 ...
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
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 ...
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 ...
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
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 ...
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 ...
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
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 ...
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 ...
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?
1
vote
2answers
20 views

Number of nodes and channels in Lightning Network?

(1) Is there any tool by which we can know the current number of nodes (participants as payer/payee) and number of channels in Lightning Network with an accurate estimation? (2) As a more advanced ...
0
votes
1answer
38 views

LND Security best practices? Disaster recovery?

Can anyone share a knowledge how to _ secure LND node _ backup node with all Channels I think only a seed will not be sufficient. What is your plan B in case of disaster? How to do an Emergency ...
1
vote
1answer
40 views

Could LN wallets be seamless?

Currently, the funds deposited in a payment channel cannot be sent on-chain without closing the channel. Similarly, the user must open a brand new channel in order to deposit some on-chain funds into ...
1
vote
1answer
34 views

Do I have to pay Fees on the Lightning Network if there is a Payment Failure?

Lightning nodes are talking fees for routing a payment. Will fees be charged anyway if a payment fails?
-1
votes
1answer
33 views

Limitation for minimum output size? AND a fixed per-transaction fee for payments in Bitcoin?

In the following article by http://lightning.network/ entitled: "The Bitcoin Lightning Network Summary", (Link to the article) is mentioned: "Lightning enables one to send funds down to 0.00000001 ...
-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
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-...
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 ...
1
vote
1answer
84 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 ...
3
votes
1answer
64 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
49 views

Is there actually a dilemma of whether or not to publish channel states for LN nodes?

I've heard that there is such a dilemma for LN: if channel states were not published, the payer will not able to find any viable path, unless he takes brute-force-like probing approach (which looks ...
3
votes
1answer
150 views

Why did my lightning node not route payments after I have funded 5 payment channels?

I have setup a docker-compose with bitcoind and clightning. After 28 hours funding 5 channels I see nothing at all. I do not expect income, but at least that the channels are used. $ lightning-cli ...
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 ...
1
vote
2answers
48 views

Is it possible to run two nodes with the same public key?

Is it possible to run two nodes with the same public key on the Lightning network? The reason is reliability -- two different servers run different instances of node software with the same setup (incl ...