Questions tagged [lightning-rfc]
The lightning-rfc tag has no usage guidance.
33
questions
3
votes
1
answer
76
views
How do route hints affect pathfinding?
I understand that route hints can be provided when generating an invoice, but how exactly do wallets use this information to assist in pathfinding? I imagine this can vary slightly between ...
6
votes
1
answer
313
views
Why is the default LN channel limit set to 16777215 sats?
I assume this default limit of 2^24 is set by some purpose in BOLT #2. But what's the meaning of that? Or is there any test/experiment to support this number?
1
vote
1
answer
40
views
How can I accept Lightning channels with fewer confirmations in LDK?
For testing purposes, I want to reduce the number of confirmations required until a LDK-based Lightning node deems a channel ready for operation.
How can I accomplish this?
3
votes
1
answer
129
views
Lightning: why don't balances add up to capacity?
I've created a brand new lightning channel with two nodes.
I loaded the channel with "capacity": "1000000", but "local_balance": "999056". I know that "...
2
votes
2
answers
84
views
What would happen to a LN channel if one of the parties followed a minority fork of Bitcoin?
Assuming a fork due to consensus-breaking rule change either hard-fork, UASF or similar. (So not including short reorgs.)
Would the channel simply become inactive/disabled and get "automatically&...
2
votes
1
answer
44
views
Alternative fee functions for the Lightning Network
The current Lightning Network specification allows channel peers to specify a base fee and a proportional fee. In other words, the fee charged is a linear function of the forwarded amount. While that ...
0
votes
1
answer
110
views
How Lightning Network sends payments
I am quite new to the whole blockchain space in general and was reading about Lightning Network. In LN which message type is used to encode payment information? For example, in the below book, there ...
1
vote
1
answer
37
views
Does the Breach Remedy Tx hinge on the remote party's revocation secret exclusively?
The original Lightning Paper required both signatures for the Breach Remedy Tx (see also this Q) but according to the BOLT #3 specs the Breach Remedy Tx only seems to hinge on the revocationpubkey for ...
4
votes
1
answer
107
views
How can I decode the feature string of a Lightning node with BOLT #9?
Typing the following command (with a running lightningd):
lightning-cli listpeers
I get peers which all have a features flag, for example 0252a1. In the manpage lightning-listpeers(7) it says, that ...
3
votes
1
answer
405
views
Why was the base_fee for the routing fee calculation of the Lightning Network included?
Currently and as defined by BOLT 07 on the Lightning Network, the fees for forwarding an HTLC of amount amount_to_forward are computed as:
fee_base_msat + amount_to_forward * ...
1
vote
0
answers
25
views
Is it possible to announce several IP addresses for a single lightning node according to Lightning protocol specs?
Is it possible to announce several IP addresses for a single lightning node?
The idea is to run a node that is connected to different ISPs to increase its uptime. LND seems to able to run in a cluster ...
2
votes
2
answers
256
views
Delay of a revocable transaction in the Lightning Network
The Lightning Network Whitepaper describes the concept of Revocable Sequence Maturity Contracts (RSMC), which allows a commitment transaction to be revoked during a predefined delay after the channel ...
1
vote
1
answer
43
views
Does "fail the channel" mean unilateral close in BOLTS?
The BOLTs frequently mentioned "fail the channel" when something unexpected is received or happens. For instance, when receiving an update_fulfill_htlc message, you should fail the channel ...
1
vote
1
answer
66
views
What is lnprototest exactly? Can it be used to test an individual Lightning implementation or just interoperability between implementations?
What is lnprototest exactly? Can it be used to test an individual Lightning implementation or just interoperability between implementations? What does an implementation need to do to use lnprototest?
-1
votes
2
answers
304
views
How exactly do I use Lightning Network? Does it even actually exist?
http://lightning.network/how-it-works/
Where is the download button for the official, highly trusted CLI application which works with Bitcoin Core? So that I can actually make Lightning transactions?
...
1
vote
1
answer
339
views
Reuse of payment hash in Lightning Network
Suppose there exist two such payment transfer request: A transfers 1 msat to R via A->B->C->R and S transfers 5 msat to R via S->B->C->R. Let the two HTLCs be formed across both the paths ...
3
votes
2
answers
823
views
Lightning Network: How was the maximum allowed HTLCs in flight computed?
The maximum acceptable max_accepted_htlcs (maximum number of HTLCs forwarded concurrently) is specified by the BOLTS as being 483.
How was this value chosen ?
2
votes
1
answer
204
views
Possible race condition(double spend) on HTLC-Timeout in the lightning network?
From the offered HTLC Outputs,
# To remote node with revocation key
OP_DUP OP_HASH160 <RIPEMD160(SHA256(revocationpubkey))> OP_EQUAL
OP_IF
OP_CHECKSIG
OP_ELSE
<remote_htlcpubkey> ...
1
vote
1
answer
191
views
BOLT 11 - Why is the description field limited to 639 bytes?
Why is the description field in a Lightning Network invoice limited to 639 bytes?
https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md#tagged-fields
https://github....
4
votes
1
answer
1k
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 ...
5
votes
1
answer
1k
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
2
answers
61
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 ...
0
votes
1
answer
179
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 ...
3
votes
1
answer
488
views
Is there a way to abort a stuck lightning network payment?
I recently had this problem IRL: tried to pay in a coffee shop with LN, but my channel partner was "sleeping", so after a while I paid in cash. Then, 5 min later, the server comes back online, the LN ...
0
votes
1
answer
140
views
Does the `HTLC fail` routed back to sender using same path if intermediate node does not have enough capacity?
In the Lightning Network, the intermediate hop between the sender and receiver checks for possible errors(like if it has enough balance). And if there is, it sends an HTLCFail message back to the ...
6
votes
1
answer
199
views
How would the gossip protocol announce channels from a channel factory?
I was just listening to SLP59 with Christian Decker. They mainly discussed channel factories. While the construction of multiparty channels and higher order systems (sub channels) being derived from ...
2
votes
1
answer
107
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 ...
2
votes
2
answers
265
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 ...
3
votes
1
answer
99
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 ...
3
votes
1
answer
213
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=...
2
votes
1
answer
548
views
Limits on lightning channels and payments
What are the upper and lower limits on Bitcoin Lightning channel balances and transactions, and where are these limits defined?
6
votes
1
answer
525
views
Why is last channel's expiry different in Lightning Network Routes?
Both in the Basic of Lightning Technology (BOLT) documents, and in the specification of lnd, there is a different treatment for the last channel in a route. In BOLT#2 it refers to a variable ...
1
vote
1
answer
532
views
Minimum funds required in a channel in Lightning?
I have noticed that, I cannot exhaust the funds in my channel to one side in lnd. I understand this makes sense so as to have some punishment in case of fraud, but I cannot find the reason for the ...