Questions tagged [lightning-network]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
343 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_{...
1
vote
1answer
14 views

How does a Lightning transaction work if one party starts with no Bitcoin and no wallet?

Let's say Alice wants to give Bob 1₿, and Bob doesn't have a regular blockchain wallet address yet. The classic example assumes that Bob is locking some Bitcoin of his own on the blockchain, and ...
1
vote
1answer
80 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 ...
0
votes
1answer
55 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 ...
1
vote
1answer
131 views

c-lightning: single tx multi-channel open stuck on CHANNELD_AWAITING_LOCKIN:We've confirmed funding, they haven't yet

I've tried to open multiple Lightning Network channels using a single Bitcoin transaction, with these steps: For every peer in PEERS (n=25) run: lightning-cli connect ${peer} lightning-cli ...
3
votes
1answer
30 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
1answer
70 views

How to make a homomorphic preimage/payment hash with current lightning network / Bitcoin implementations?

If I remember / understand it correctly by using the mechanisms from the scriptless scripts paper we could easily create homomorphic preimages / paymenthashes. I think this would be a very desirable ...
5
votes
0answers
56 views

How to emulate SIGHASH_NOINPUT using CHECKSIGFROMSTACKVERIFY?

I read on bitcoin-dev that CHECKSIGFROMSTACKVERIFY (CHECKDATASIG in BCash) can be used to emulate new sighash flags. How would that work, concretely? As an example, please provide an example update ...
0
votes
1answer
130 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 ...
1
vote
2answers
71 views

Where is the lightning history persisted?

In relation to this question: Alice & Bob where they transfer 1 BTC each other. Both Alice & Bob transfer 1 BTC into a shared multisig address. A ‘balance sheet’ is created where 1 BTC is ...
1
vote
1answer
192 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
2answers
35 views

Can my 10,000 satoshi channel with a large LN node receive multiple LN payments that are larger than the amount in the channel?

Can my LN channel for some amount "X" receive a LN payement larger than "X"..or receive multiple small payments that exceed "X"? For example, say I have an online tea store and have one 100,000 ...
1
vote
1answer
27 views

Do HTLCs get “carried over” in the subsequent commitment transactions?

With regular commitment transactions, current transaction invalidates the previous one. This is fine, since TXs between A and B in their channel happen one after another. However, HTLCs are sort of ...
0
votes
1answer
50 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
139 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
2answers
53 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 ...
2
votes
3answers
78 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 ...
2
votes
0answers
33 views

What are the pros/cons of preferring sending the latest commitment or the oldest commitment?

Roasbeef mentioned on IRC that the Lightning specification allows a client to either assume that the latest co-signed commitment has been received by the counterparty, or that it hasn't. (as far as I ...
6
votes
2answers
658 views

How do “trustless third-party watchers” work in Lightning Network?

The main point with LN is the need to monitor the blockchain. The reason for this is to detect if the counterparty misbehaves by publishing an old channel state to the blockchain. For a node running ...
2
votes
1answer
158 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 ...
5
votes
0answers
98 views

Why did the lightning network implement a gossip protocol?

As pointed out by many lightning developers in the past (e.g. Rusty's 1 million channel challenge) the gossip protocol is quite noisy and a part of the BOLTs causing many engineering challenges. ...
2
votes
2answers
41 views

What is a decent value for Time Lock Delta on a lightning network node?

Looking at the settings of some nodes on 1ml.com, I noticed the Time Lock Delta variable could vary a lot. How does it affect a node, and what is considered to be a decent value for it?
0
votes
1answer
274 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
32 views

Why does the amount of sats in a lightning payment channel amounts vary if no txns are occuring?

I recently got my lightning node up and running (went the easy route via Casa node). I noticed that I was having a difficult time tracking the amount of sats in a given channel..I wasn't doing any ...
0
votes
1answer
16 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, ...
1
vote
1answer
49 views

Why is it necessary for Multi-Path Payments in Lightning to be Atomic?

One way of achieving multi-path payments in lightning is by having the sender use the hash sent by the receiver to send multiple payments along different paths. The mailing list entry proposing atomic ...
2
votes
2answers
359 views

Single-hop Payment vs Multi-hop payments

I am beginner of lightning network. When i am looking roughly lightning network whitepaper, i was confused about the types of contracts used in single-hop and multi-hop. As far as I understand, In ...
2
votes
1answer
30 views

how does lightning network transactions appear?

from my understanding lightning network is a side chain that keeps track all the transactions in the network and just send the sum of the transaction to each of their respective recipients. form that ...
2
votes
2answers
328 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 ...
0
votes
1answer
31 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 ...
2
votes
1answer
26 views

What means “fallbacks” in LN invoices?

Just saw a "fallback" property in LN invoice. Never seen before. Can you please describe what that means and how I can make an invoice with same property? I am using c-lightning. This is what i had ...
1
vote
1answer
31 views

What are atomic multi path payments (AMPs) and why/how is it being implemented in Lightning Network?

There has been a lot of discussion and articles around how the implementation of AMP is going to benefit the routing capabilities of Lightning Network. What is the exact issue in the current ...
1
vote
1answer
29 views

Would proxying a lightning hot-wallet with a lightning cold-wallet make the hot-wallet safer?

(Edit: I realize how Mt.Gox-y the below setup sounds, but I'm coming at it from a "lightning routing problem perspective", not necessarily a straight "bitcoin security perspective"...though...those ...
2
votes
1answer
121 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 ...
1
vote
2answers
359 views

How to know earning LN routing fees

I am using c-lightning version:v0.6-182-g1851ebb. Is there a way to know how much I have earned routing fees? I found that lnd has lncli feereport command that shows earned fees. Does c-lightning have ...
5
votes
3answers
76 views

How does loop work?

Lightning loop is a great non-custodial way to do submarine swaps in both directions. However I would like to clarify some questions about how it actually works. There is a closed source server side ...
0
votes
1answer
38 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.
3
votes
1answer
78 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
68 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 ...
1
vote
1answer
199 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 ...
4
votes
1answer
269 views

Why is my “spendable_msat” much lower than “msatoshi_to_us”?

Today I was attempting to send a Lightning Network payment via c-lightning, version v0.7.1-64-gbb30104, using a channel I established in 2018. Strangely, my payment kept failing even if the ...
0
votes
1answer
29 views

c-lightning - Unknown Peer

I'm trying to create a channel using c-lighting (testnet), but I keep getting an Unknown Peer error message. I used cli/lightning-cli connect which seemed to work fine. I used cli/lightning-cli ...
3
votes
1answer
34 views
2
votes
1answer
78 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 ...
0
votes
1answer
43 views

lightning to lightning non custodial swaps [closed]

Do you know the way to freeze funds in lightning tx to implement atomic swap between two independent lightning networks?
1
vote
1answer
57 views

Does an incorrect preimage cause intermediary nodes to discard a Lightning payment?

Consider a multi-hop Lightning payment from Alice via Bob to Charlie. Charlie creates an invoice, Alice finds a route and forwards the payment, now Charlie is expected to redeem the payment by ...
2
votes
1answer
22 views

Why do Lightning packets include channel ids if forwarding is non-strict?

The onion packets in Lightning, as described in BOLT 4, include short_channel_id's of the channels along the route constructed by the sender. But according to the same spec, the forwarding is non-...
0
votes
1answer
93 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 ...
2
votes
2answers
63 views

download the bitcoin chain begining from a certain date

I am building a bitcoin lightning network using lnd on a separate computer this computer has less than 200G avaible and the actual blockchain is more than 220G, so I am gonna need to use prude mod ...
2
votes
1answer
33 views

Scaling fee solution for Bitcoin lightning?

Currently it cost $0.000116736 USD (1 satoshi) fee to make a transaction on lightning. What are some other scaling solutions to lower the fees? Can we just increase the decimals and have sub-satoshi ...