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
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
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 ...
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
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 ...
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
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?
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
3
votes
1answer
34 views

How do I find the nodeid of the node issuing a lightning network invoice?

I recently got an BOLT11 invoice from a store. For example this one: ...
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 ...
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
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?
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 ...
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 ...
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 ...
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
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 ...
2
votes
1answer
29 views

Lightning Network conf listen & externalip values

I downloaded LN repo. I have this settings in my lnd.conf file: listen=192.168.100.134 externalip=186.4.235.84 I am following some tutorials online that do not include this settings (like this one) ....
3
votes
1answer
62 views

How to manually rebalance Lightning Network channels?

I'm running an LND node that has a few dozen channels open to various relevant vendors/routing nodes. There are a couple specific channels that are open with stores that are getting used with most of ...
1
vote
1answer
35 views

How to set up Lightning Network conf file. RPC user / password? and zmqpubraw?

In my lnd.conf file I have the following settings: debuglevel=info listen=192.168.100.134 externalip=186.4.235.84 alias=MyNodeAlias color=#000000 maxpendingchannels=5 bitcoin.mainnet=1 bitcoin....
2
votes
1answer
39 views

How to get the outbound and inbound capacity of a node using LND?

I expected to find an option on lncli to get the exact inbound and outbound capacity of my node, but this is not the case. What is the best way to have this information?
2
votes
1answer
50 views

HTLCs and commitment transactions

Why commitment transactions can't simply be HTLCs instead of contracts revocable by having the second half of the Revocable Private Key? I mean, why bother to create a Revocable Public Key from two ...
2
votes
1answer
24 views

Who pays on-chain fees for settlement transaction?

Given a channel between Alice and Bob, who pays the on-chain fees when closing the channel? Considering all possible types of closes: Bob unilaterally closes channel Bob wants to close the channel ...
3
votes
1answer
32 views

Set lower limit to incoming new channels in LND

For now, any remote node can open a channel to my LND node and my node will always happily accept the channel. However, I've seen in the past that other nodes would have limits in what channel sizes ...
2
votes
1answer
65 views

Lightning Network : Pay a Bolt11 Invoice in multiple Payments

Is there a way to pay one Bolt 11 Invoice in multiple payments with Lightning Network? For instance this invoice total amount to pay is 5000 satoshi: ...
0
votes
2answers
43 views

BOLT #7: Can receiving node requirements in channel_update message give rise to malicious attacks?

Following requirements have been placed on the receiving nodes related to the channel_update message in BOLT #7. if timestamp is NOT greater than that of the last-received channel_update for ...
1
vote
1answer
36 views

What is the best Lightning implementation to obtain the network graph?

I want to obtain a fresh snapshot of the Lightning network from my own node. So far I've experimented with Eclair, its API calls allnodes, allchannels, and allupdates give me the information in the ...
1
vote
1answer
23 views

Lightning network: which update messages are replayed?

If I understand correctly, after a new node connects to a peer in the Lightning network, it receives all past channel announcement / update messages for currently open channels to recreate a local ...
1
vote
1answer
39 views

Where can I download a snapshot of the Lightning network topology?

I want to study the properties of the Lightning network graph. Is there a way to obtain a reasonably fresh snapshot containing nodes and channels (say, in JSON format)? There are multiple explorers ...
0
votes
1answer
35 views

Is a bitcoin UTXO divisible?

In this video Andreas Antonopolous says an output is indivisible and therefore if a transaction smaller than the output is done, the rest is used as change and returned to your different address of ...
1
vote
1answer
54 views

invoice amount is 1200000 but I paid 1201035. What is 1035?

I paid the invoice and then I noticed I paid more than the amount of the invoice. 1201035 (I actually paid) - 1200000 (the amount of the invoice) = 1035 (?) My questions are.. What is 1035 satoshi? ...
4
votes
1answer
45 views

Why doesn't Lightning have DNS bootstrapping?

Bitcoin uses a DNS-based bootstrapping mechanism to help new nodes find peers. As far as I'm aware, Lightning doesn't have such mechanism, and new users are supposed to just search for node addresses ...
1
vote
0answers
31 views

Error pay invoice. Ran out of routes to try after 2 attempts: see paystatus

I wanted to send some satoshis on testnet lightning network but I got "Ran out of routes to try after 2 attempts: see paystatus" error. I have a channel with 02...48 (1ML.com node ALPHA) and created ...
2
votes
3answers
71 views

Why can't an intermediary Lightning node take (nearly) all fees?

Consider a Lightning payment: Alice wants to pay 100 sat to Dave via two intermediary hops: Alice - Bob - Charlie - Dave. Both Bob and Charlie advertise a fee of 2 sat. Alice sends 104 sat to Bob, ...
3
votes
1answer
77 views

Is signature/private-key required to accept payment over Lightning Network?

To (1) create an invoice and (2) accept payment in LN, the node has to be online. But does the node need to sign the creating invoice or the accepting payment? We don't have to have private key ...
1
vote
1answer
23 views

Can I explicitly specify a path for Lightning payment?

From what I understand, in the current Lightning implementations payments work as follows: calculate best N paths according to some metric (like, total fees); try to perform the payment through the ...
2
votes
1answer
24 views

Lightning Network on testnet - listchannels and listnodes returning empty values

I have setup a lightning node on testnet using c-lightning. The lightning-cli getinfo command output: { "id" : "0315a5746114ab9f3e8f0a3f2f73153ef1e4a8fb58daa54fa97c9603dfab989a30", "alias" : "...
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
1answer
98 views

Does Lightning Network has concept of continuous stream of value?

Examples: Car insurance: $1000 per year. Legal consultation: $500 per hour. Visiting a website: $100 per hour. Assuming 1 BTC = $8000 1 hour = $100 = 0.0125 BTC = 1,250,000 sat 1 second = 1,250,...
2
votes
1answer
69 views

Accepting micropayment donations via Lightning Network - what is the most efficient / recommended architecture?

The difficulty that I am experiencing at the moment - how to accept Lightning Network micropayments donations supporting (shameless plug): https://genesis.re/wiki#Plan_B Zap / Joule: I send on-chain ...