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]

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

1
vote
2answers
49 views

Why was noise XK fundamental pattern chosen in the transport layer (BOLT 08) of the lightning network

I am currently reviewing the transport layer of the Lightning network protocol. It builds on top of the noise protocol framework handshake patterns. What I don't get: Why was the fundamental pattern ...
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
2answers
262 views

lightning network funding transaction clearification

Im trying to understand the funding transaction for a channel on the lightning network. I am wondering how the input looks like to the funding transaction. Does it require In_{Alice}(tx_{id}, tx_{...
0
votes
2answers
47 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 ...
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
1answer
110 views

Lightning network hub security?

Reading the whitepaper, I came across a point: nodes wishing to act as effective intermediaries, 'hubs' or not, need high availability and need to operate autonomously. This means they must have ...
2
votes
1answer
105 views

C-lightning lightningd crashing

To run a lightning node I followed the instructions here: https://medium.com/@dougvk/run-your-own-mainnet-lightning-node-2d2eab628a8b except that I downloaded and installed bitcoind and lightningd ...
2
votes
1answer
519 views

Bitcoin Full Node + Lightning running on single-board-computer, possible?

I know similar questions (regarding a Bitcoin Full Node) were already asked here, but they date all back to 2014 and I think especially the space needed by the blockchain changed a lot since then. I ...
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
1answer
126 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 ...
1
vote
1answer
55 views

Failed to start lightningd.service: Unit bitcoind.service not found

I followed the tutorial https://medium.com/@meeDamian/c-lightning-node-on-rbp3-b950660fb835 without error. When I type: sudo systemctl start lightningd I get Failed to start lightningd.service: ...
1
vote
1answer
71 views

How can I make Zap synchronize with the Bitcoin network?

I'm using the Mac operating system. I downloaded Lightning App and Zap from Github. The wallet can not be synchronized with the network, how can I synchronize it and can I do it without having to ...
1
vote
1answer
154 views

Can you use the same seed for normal BTC and Lightning wallets?

If I generated 24 words from a Ledger Nano, can I import these to a lightning network wallet e.g. Eclair?
1
vote
1answer
119 views

How can you make sure that there will be routes with large enough balances to handle transactions?

I'm creating a "Megathread" regarding the Lightning Network and have been fielding questions. To help obtain the correct answers with sources, I'm reaching out to the Bitcoin StackExchange. I was ...
0
votes
1answer
29 views

How to backup seed in lightning and give your channel to watchtower

this is followup on question #85475: I have learned in previous question that there is an automatic refund mechanism in case of force closure of a channel, except for some very rare circumstances. I ...
0
votes
1answer
36 views

What happens when invoices get paid more than once?

Until today I thought, that lightning invoices can only be paid once. Where do the funds go when an invoice is paid more than once? Will every payment reach the destination node or can reusage be ...
0
votes
1answer
13 views

What is a stub from the lightning grpc documentation?

For example, very often in the lightning documentation for their grpc api, you will see the following boilerplate python code: >>> import codecs, grpc, os >>> import rpc_pb2 as ln, ...
0
votes
1answer
28 views

how do i get my @host for LN

I cannot find where to get the host to complete a lightning channel. I have tried searching in the command prompt but cannot find host info anywhere.
0
votes
1answer
56 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
1answer
39 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
77 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
0
votes
1answer
42 views

Need help with a .conf file to run a lighting node?

This is my configuration file and i followed all of the instructions for the program but it always gives me the error message about something missing. I don't even know what programming language .conf ...
0
votes
1answer
194 views

unable to route payment to destination: TemporaryChannelFailure

Keep getting this error following attempting to pay an invoice. root@ubuntu-s-1vcpu-2gb-nyc3-01:~# lncli --network=testnet payinvoice ...
0
votes
1answer
20 views

Is it possible to create pure lightning lockboxes (without touching the blockchain)?

I'm considering a scenario in lightning, where it would be extremely useful to be able to lock the funds in 2/3 lock Is this possible on lightning network (even in theory)?
0
votes
1answer
45 views

Lightning: Is it possible to send lightning BTC outside of a lightning state channel?

Let's say that I have a channel opened and I want to send some lightning BTC to someone who didn't ever used lightning, is it possible or will it be? Or will I need to open a channel first then send ...
0
votes
1answer
116 views

c-lightning - CHANNELD_AWAITING_LOCKIN - Freeze

I have open 3 channels with a c-lightning node (with rompert.com and satoshis.place and HP). When I look for the funding_txid field on the blockchain the transactions are all confirms for more than ...
0
votes
1answer
245 views

Funding channels In Lightning Network

I was attempting to learn more about LN and came across the post below. https://medium.com/tokensoft/tokensoft-lightning-node-how-to-connect-for-free-62b9aaec18b8 I also made a picture of my ...
0
votes
1answer
61 views

Can I open many channels to one connection?

Trying to learn the Lightning Network :) Can I do something like this: STEP 1: Generate new addresses address_1 = cli/lightning-cli newaddr address_2 = cli/lightning-cli newaddr address_3 = cli/...
0
votes
1answer
125 views

Lightning Network transaction, how many transactions will be created

A simple Lightning Network transaction, how many transactions will be created on the main bitcoin chain? I guess is three transactions. Example: Alice create 2-to-2 multi-sig address AC Alice put ...
0
votes
1answer
275 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'] ...
-1
votes
1answer
38 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
744 views

How to give IP to my node on the Bitcoin Lightning Network

I want to give Ip address to my new node . I have got the pubkey for my node , on the lightning.exe application ,but could not set IP address to my node so that it can be seen publicly on the site "...
2
votes
0answers
18 views

How to transmit fraudulent commitment transaction on lightning channel?

I'm trying to simulate a fraudulent commitment transaction on lightning. How would you submit an earlier commitment transaction. It doesn't seem like this can be done with a command. Does anyone know ...
2
votes
0answers
89 views

Post SegWit Inclusion, how long until Lightning Network is included in the core?

Introduction - Reason for asking this question With most of the money in the cryptocurrency domain still being utilized in transactions on crypto-exchanges and the numerous hacks that have previously ...
2
votes
0answers
62 views

How to implement Lightning Network in to a cryptocurrency exchange

A highly potent use-case for the lightning network are the millions of transactions that occur on a daily basis. There's still a good chance of data breach and hacks due to centralization. The ...
2
votes
0answers
64 views

How would Bitcoin look like if the primary design goal was to have LN-like payments?

Today (assuming SW), we have Bitcoin, which allows us to build LN using a set of smart constructs such as HTLCs. But this is a result of a work of people trying to figure out how to take what Bitcoin ...
1
vote
0answers
34 views

Why did the lightning network implement a gossip protocol?

As pointed out by many lightning developers in the past (eg Rustys 1 million channel challenge) the gossip protocol is quite noisy and a part of the BOLTs producing many engineering challenges. Today ...
1
vote
0answers
33 views

Why can’t lightning tx’s be signed with sighash single to allow for fee updates?

Are out-of-band fee payments to confirm a lightning closing transaction the only way to manage a situation where the sat/kw of a previously signed commitment tx are simply below market? If additional ...
1
vote
0answers
30 views

Lightning Network: are all keys pre-generated in the base row of the merkle tree?

From the whitepaper, page 41: Keys are generated in a merkle tree and are very deep within the tree. For instance, Alice pre-generates one million keys, each key being a child of the previous ...
0
votes
0answers
21 views

Cannot get feereport due to error “[lncli] rpc error: code = Unknown desc = no policy for outgoing channel”

Lots of my lnd command got stucked with error message like: [lncli] rpc error: code = Unknown desc = no policy for outgoing channel 591836322924134401 I have checked the channel id appeared in 1ml ...
0
votes
0answers
37 views

How to perform CPU mining on bitcoin TESTNET on Linux?

I need approximately 100 Bitcoin Testnet to run an experiment on the lightning network. Any suggestion on how to run CPU mining? Should I use cgminer? Make any sense to perform solo mining on ...
0
votes
0answers
23 views

lnd - “unable to create server: no active channels exist” after successful lncli unlock

I'm setting up a Lightning node using bitcoind and lnd and this guide: How to Install and Use the Lightning Network with bitcoind on the Bitcoin Mainnet It's been an interesting couple of days, but ...
0
votes
0answers
26 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 ...
0
votes
0answers
48 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
0answers
43 views

Lightning Network: why should the receiver send an equal payment to the sender with the same hash?

From the whitepaper, page 46, chapter 8.3 "Clearing Failure and Rerouting": If a transaction fails to reach its final destination, the receiver should send an equal payment to the sender with the ...
0
votes
0answers
30 views

What is the impact of increasing maxpendingchannels?

How will increasing the value of maxpendingchannels impact my experience both as an end-user sending/receiving payments, and as a node operator? I currently have it set at 5, which I believe is the ...
0
votes
0answers
214 views

lightning-rpc': Connection refused

I am setup my lightning network on ubuntu by using instructions below: https://docs.google.com/document/d/195oDM7wG-Kkx073R1B6GhiqsMIwAxNx9BEA3Fsfpnw0/edit?usp=sharing I have a trouble in step 18, ...
0
votes
0answers
81 views

Lightning Network understanding

Is the below scenario is how transaction are carried out in lightning network? Is this a proper understanding? Alice & Bob where they transfer 1 BTC each other.  1. Both Alice & Bob transfer ...
0
votes
0answers
79 views

Crossblockchain Checkpoint Consensus?

Are there any discussion threads about the topic below that can be identified? Would recording signed block checkpoints of a proof-of-stake (PoS) blockchain in a proof-of-work (PoW) blockchain by ...
-1
votes
0answers
42 views

SIgnature calculation in Bolt 3

Attempting to verify the local signature in Bolt 3 of Lightning Network RFC. (https://github.com/lightningnetwork/lightning-rfc/blob/5c11b6a4022b75fc7717133081eab6f34d7d56a6/03-transactions.md) The ...