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
0
votes
1answer
32 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
60 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
23 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
44 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
67 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
47 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
36 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
99 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
34 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
31 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
93 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
56 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
53 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
54 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
27 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
42 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
88 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
38 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
24 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
2answers
58 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
59 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
51 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
32 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
73 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
87 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
24 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
31 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
54 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
73 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 ...
0
votes
1answer
78 views

BOLT #3: Shouldn't timeout be included in the script of “Offered HTLC Outputs” for the local node?

According to the BOLT #3 documentation, the offered HTLC output has the following script that allows the remote node to claim the funds with the payment pre-image and the local node to claim it after ...
0
votes
1answer
36 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 ...
1
vote
1answer
56 views

Remote node signature for HTLC-success and HTLC-timeout transactions

According to BOLT #3, when constructing a HTLC output in the version of the local node (both received and offered HTLC), it requires that the payment to the local node is locked with CHECKMULTISIG ...
0
votes
1answer
26 views

How multiple unfinished payments in single LN channel work?

I think I understand HTLCs, at least if they are on chain. I also have a basic understanding of how off chain channel looks like. I understand it as follows. It is a 2-of-2 multisig transaction ...
1
vote
2answers
67 views

Why do we use CLTV instead of CSV in the HTLC output of the commitment transaction?

In lightning network commitment transactions, the HTLC offered/received outputs generally pay the offering node after a timeout which is scripted using CLTV. In other parts of the commitment ...
1
vote
1answer
82 views

How does 1ML measure the availability ranking of nodes?

If there is an 1ML Node Rank ranking explanation anywhere ? My node is online 99.9% but "Availability" dropped down from 700 to 4000 in last 3 months. :( I guess this is somehow associated with the ...
2
votes
1answer
52 views

What are some proposed privacy features coming to the bitcoin lightning network?

If I'm correct, a bitcoin sent into a lightning channel technically looks like any Bitcoin transaction. From there if the channel never closes, the Bitcoins can essentially stay in a "locked" state in ...
1
vote
1answer
80 views

How does one generate a paper wallet for a Lightning Bitcoin address?

Is there a paper wallet generator for a Bitcoin Lightning addresses? How can one generate it in javascript?
0
votes
1answer
55 views

Implement HTLC manually by writing scripts

Is there any way to implement HTLC manually for locking funds in the channels in lightning network for a period of time (by setting intervals) and releasing the funds after the time lock expired using ...
1
vote
1answer
140 views

lnd SendPayment “unable to find a path to destination”

I got an error "unable to find a path to destination" when I call SendPayment to an invoice, created at starblocks.acinq.co, from my local private LND node on mac (docker). It seems getinfo and ...
3
votes
1answer
143 views

Is there a solution to paying high fees when opening and closing lightning channels once we hit a fee only market?

Paying several hundred dollars to open and close a lightning channel seems uneconomical. This is a common argument against lightning by big blockers, I’m yet to read a valid argument against this.
1
vote
1answer
32 views

How Lightning Networks protect itself from 'Selfish Mining'?

It is a well accepted fact that mining pools do engage in 'selfish mining' by not broadcasting a block to the network when they find a PoW solution, but building on top of that block so as to maximize ...
1
vote
3answers
145 views

Can the bitcoin lightning network support more than 8 decimal places?

Say Bitcoin goes to 1 a million dollars. We need more decimals, but btc core only supports 8 decimals? By that time its safe to assume everyone will be using lightning to do transactions, but will ...
1
vote
1answer
29 views

How many channels of Lightning Network can I open in one transaction?

To open channel I should create a transaction with a special script and at least one output to P2WSH address. Is it possible to open more than one channel in one transaction if I created transaction ...
2
votes
2answers
43 views

How can a single funded channel become bidirectional?

Is it possible that funding transaction of Lightning Network channel has got just one input? And if yes will it be one-directional during whole period of channel existence? Or after some off-chain ...
0
votes
1answer
27 views

How can I create HTLCs below dust_limit_satoshi in Lightning Network?

BOLT#2 documentation for open_channel message has two points (dust_limit_satoshi and htlc_min_msat) in the data message that I found confusing. Below is the statement related to dust_limit_satoshi: ...
2
votes
1answer
39 views

What is correct way to count LN node stats

I am running a LN node. Set up monitoring to collect stats. Now i am wondering, how can i get correct conclusions about what collected information actually is. My question is about forward (...
1
vote
1answer
35 views

Eclair Lightning Node With Core Version 18

When attempting to open channels in lightning network I get the following error: signrawtransaction was removed in v0.18. Clients should transition to signrawtransactionwith key and ...