Questions tagged [lightning-rfc]
33 questions
6
votes
1 answer
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 them seems clear
and is being described in this…
Rene Pickhardt
- 11,670
- 8
- 35
6
votes
1 answer
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 min_final_cltv_expiry:
min_final_cltv_expiry is the…
ranchalp
- 567
- 3
- 13
6
votes
1 answer
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?
Jeffrey Hu
- 93
- 5
5
votes
1 answer
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:…
Rene Pickhardt
- 11,670
- 8
- 35
4
votes
1 answer
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 implementation of Lightning that AMP is solving? How does…
Ugam Kamat
- 7,263
- 2
- 13
- 38
4
votes
1 answer
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 it corresponds to the features mentioned in BOLT…
user112185
3
votes
2 answers
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 ?
Guillaez
- 43
- 2
3
votes
1 answer
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 payment went through and I had to go get my cash…
stefanwouldgo
- 847
- 4
- 15
3
votes
1 answer
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 technical description of the Lightning network as…
Sergei Tikhomirov
- 1,430
- 7
- 17
3
votes
1 answer
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=256, update_time=2019-01-11 12:19:08 +0100 CET) to…
Stefano Angieri
- 155
- 8
3
votes
1 answer
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 implementations since there doesn't seem to be any strict…
oz21m
- 107
- 4
3
votes
1 answer
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 "commit_fee": "614" accounts for some reserved sats for channel closing. But that still leaves…
user339946
- 205
- 1
- 3
3
votes
1 answer
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 * fee_proportional_millionths / 1000000
I am wondering why the…
Rene Pickhardt
- 11,670
- 8
- 35
2
votes
1 answer
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 OP_EQUAL
OP_IF
OP_CHECKSIG
OP_ELSE
OP_SWAP OP_SIZE 32 OP_EQUAL
OP_NOTIF
# To local…
yyforyongyu
- 128
- 5
2
votes
1 answer
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 time and sequence fields (24bits each) of the…
James C.
- 2,501
- 1
- 6
- 18