Skip to main content

Questions tagged [lightning-rfc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
28 views

Lightning force close detection

┌────────────────────────────────────┐ ┌────────────────────────────┐ │ outputs contain revocation script? ├──yes──► force close w/ penalty = 3 │ └──────────────┬─────────────────────┘ ...
sanket1729's user avatar
  • 1,402
5 votes
1 answer
57 views

What is a payment basepoint?

The BOLT #3 Commitment Transaction documentation talks about a payment basepoint, but I can't find it defined in the glossary or anywhere else. It also mentions various other basepoints like a ...
Zephyrus's user avatar
  • 782
3 votes
1 answer
99 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 ...
oz21m's user avatar
  • 107
7 votes
1 answer
335 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?
Jeffrey Hu's user avatar
1 vote
1 answer
46 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?
tnull's user avatar
  • 111
3 votes
1 answer
148 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 "...
user339946's user avatar
2 votes
2 answers
96 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&...
J4ckJ0n3s's user avatar
2 votes
1 answer
47 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 ...
Vojtěch Strnad's user avatar
0 votes
1 answer
128 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 ...
Arun's user avatar
  • 1
1 vote
1 answer
40 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 ...
gijswijs's user avatar
  • 295
4 votes
1 answer
128 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 ...
user avatar
3 votes
1 answer
417 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 * ...
Rene Pickhardt's user avatar
1 vote
0 answers
26 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 ...
CarstenBKK's user avatar
2 votes
2 answers
298 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 ...
Gabriel Rebello's user avatar
1 vote
1 answer
46 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 ...
Scott Driscoll's user avatar
1 vote
1 answer
69 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?
Michael Folkson's user avatar
-1 votes
2 answers
312 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? ...
Wendeborn's user avatar
1 vote
1 answer
358 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 ...
Subhra Mazumdar's user avatar
3 votes
2 answers
923 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 ?
Guillaez's user avatar
2 votes
1 answer
220 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> ...
yyforyongyu's user avatar
1 vote
1 answer
210 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....
ascendzor's user avatar
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 ...
Ugam Kamat's user avatar
  • 7,417
5 votes
1 answer
2k 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: ...
Rene Pickhardt's user avatar
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 ...
Ugam Kamat's user avatar
  • 7,417
0 votes
1 answer
204 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 ...
Ugam Kamat's user avatar
  • 7,417
3 votes
1 answer
634 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 ...
stefanwouldgo's user avatar
0 votes
1 answer
155 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 ...
demid's user avatar
  • 103
6 votes
1 answer
200 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 ...
Rene Pickhardt's user avatar
2 votes
1 answer
111 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 ...
James C.'s user avatar
  • 2,521
2 votes
2 answers
296 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 ...
Chris Stewart's user avatar
3 votes
1 answer
109 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 ...
Sergei Tikhomirov's user avatar
3 votes
1 answer
223 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=...
Stefano Angieri's user avatar
2 votes
1 answer
569 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?
ktorn's user avatar
  • 1,255
6 votes
1 answer
577 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 ...
ranchalp's user avatar
  • 567
1 vote
1 answer
567 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 ...
ranchalp's user avatar
  • 567