7 votes
Accepted

Why doesn't c-lightning allow you to open multiple channels with the same peer?

This was answered by Christian Decker on Telegram. Just because the specification allows something doesn't mean every implementation has to implement it and support it. In c-lightning's case it is ...
user avatar
5 votes
Accepted

Why do Lightning packets include channel ids if forwarding is non-strict?

I guess this has historical reasons. The short channel ids where there first in the onion format. C Lightning even today does not support multiple channels between 2 nodes. Lnd on the other hand does. ...
user avatar
5 votes

How to convert channel id from c-lightning to lnd?

The specification of the short_channel_id describes the format as follows: The short_channel_id is the unique description of the funding transaction. It is constructed as follows: the most ...
user avatar
  • 8,764
5 votes
Accepted

Do Lightning Channels have to be resolved before a certain time?

I seem to remember that Lightning channels could remain open indefinitely with the introduction of CLTV I think instead of "CLTV" you mean "CSV" (as in OP_CSV, BIP112). As far as I know, nobody ...
user avatar
4 votes
Accepted

Do payment channels have an address? And where are their transactions actually being written to?

The payment channel between Alice and Bob is encoded as a 2-2 multisig Adress the balance of that Adress is the capacity of the channel. A channel is opened by sending funds to that multisig Adress ...
user avatar
4 votes
Accepted

What is the unit of time_lock_delta in LND?

The time_lock_delta is the minimum difference in the number of blocks between the CLTV of an incoming HTLC and the forwarded HTLC. Full details are described in BOLT2 # CLTV expiry delta.
user avatar
  • 3,219
4 votes
Accepted

Lightning Network `channel_update` message Flag clarification

The flags field (2 bytes) has been split into two different (1 byte) fields, the message_flags (most significant bits) and the channel_flags field (least significant bits). Hence the flags value ...
user avatar
  • 8,764
3 votes
Accepted

What are Zombie Channels?

I am not aware of a clear definition for the term zombie channels. At least I don't recall the term being used in the lightning rfc. Also I didn't hear lightning devs in conversations to talk about ...
user avatar
3 votes
Accepted

Can Initial Channel Balances be figured out from the Funding Transaction?

A funding transaction is one where some money is paid into a P2WSH transaction output, where the redeeemScript is a 2-of-2 multisig between the two participants. No other information is provided. ...
user avatar
  • 3,219
3 votes
Accepted

Bidirectional channel opening in c-lightning

There seems to be a mix in notation. Payment channels on lightning are bidirectional by design. However that does not mean that funds can always flow on both directions. Currently channels are funded ...
user avatar
3 votes
Accepted

How to manually rebalance Lightning Network channels?

Lnd itself does as far as I remember not provide an api for rebalancing channels. However there is the lndmanage repository that uses the lnd api to provide a pretty strong rebalancing tool https://...
user avatar
3 votes

Order of Exchanging Revocation Keys during Lightning Transactions

Alice and Bob jointly create a public key R for each revocable output (RSMC output script). They each privately generate r-1 and r-2, and derive public keys R-1 and R-2 from these. R is the sum of R-...
user avatar
  • 2,423
2 votes

Are Tor .onion-addresses IP address independent?

Yes. The channels are announced with the node ID. If the ip Address changes we get a new node announcement message so it takes some time until the information is through the gossip protocol. But ...
user avatar
2 votes

How to convert channel id from c-lightning to lnd?

https://github.com/lightningnetwork/lnd/blob/8379bbaa9b259544c2c8591782a78d7384680b2a/lnwire/short_channel_id.go#L25-L43 // NewShortChanIDFromInt returns a new ShortChannelID which is the decoded // ...
user avatar
2 votes

Does Lightning Network has concept of continuous stream of value?

Streaming payments is not part of the lightning network protocol yet. However you can build a lightning app that simulates exactly this. There was a demo by alekos Filini on lädt years lightning ...
user avatar
2 votes

What is the unit of time_lock_delta in LND?

It seems to me that the field time_lock_delta in LND corresponds to what BOLT#7 refers to as cltv_expiry_delta. Which the specification explains to be "the number of blocks it will subtract from an ...
user avatar
  • 63.6k
2 votes
Accepted

Is it possible to use the Lighning network without being a middleman/intermediary for others?

You are not required to forward htlcs and engage in routing if you join the network. A relative easy way to achieve this is by only having non public channels. However that does not guarantee you that ...
user avatar
2 votes
Accepted

What is the Channel ID in 1ML.com?

The channel_id in 1ml seems to be the lnd encoding of the short_channel_id. Note that the short Channel ID is just 3 bytes of blockheight, 3 bytes of transaction index within the and 2 bytes for the ...
user avatar
1 vote
Accepted

What command does a c-lightning node run, after did broadcast fundchannel from my side, when they establish a channel with me? Can they be censored?

I believe the concerns of the authors are addressed in this answer. Here is anyway, to their request, an adaptation of the answer to the application from this question. I think you are conflating ...
user avatar
1 vote

Why is lnd's channel.db so huge and when will it stop growing

Like vincenzopalazzo commented - it never stops growing by design. Solution is to add db.bolt.auto-compact=true to the lnd config. Then the db gets "compacted" (means cleaned-up here) at ...
user avatar
1 vote

Force Closing a BTC lightning channel on Umbrel

This seems pretty normal. When you force close a Chanel this means that your node publishes the latest presigned commitment transaction. However we have no way of knowing if is really the latest or an ...
user avatar
1 vote
Accepted

how many htlcs can a lightning channel have pending at a given time

483 because the commitment transaction might otherwise become too large if it hits the chain. Ramifications are: blackmail fee attacks (c. F. https://lists.linuxfoundation.org/pipermail/lightning-dev/...
user avatar
1 vote
Accepted

c-lightning channel announcement/establishment issue

I've been running a c-lightning node over Tor with 2 open channel for a few months and it still hasn't forwarded any payment. With two channels that's not surprising. but I noticed my channels ...
user avatar
1 vote

c-lightning channel announcement/establishment issue

When the channel is opened the opening side of the channel chooses if the channel should be private or announced. Well actually the other side can also choose not to accept public channels. Maybe that ...
user avatar
1 vote
Accepted

Doubt on lightning channel opening

Channel funding (and the distribution of funds) is determined at the time of channel opening. Once opened, a party cannot ‘add funds’ to the channel, this would require opening a new channel. If you ...
user avatar
  • 17.3k
1 vote

c-lightning - Unknown Peer

Everything but the last Comand looks correct. There is no command channel in c-lightning. In order to open a channel you need to execute cli/lightning-cli fundchannel id satoshi [feerate] [announce] [...
user avatar
1 vote

How to manually rebalance Lightning Network channels?

In addition to lndmanage you can also use this script (I'm the author): https://github.com/C-Otto/rebalance-lnd Using the -f parameter you can select a channel with more than 50% of the funds on the ...
user avatar
  • 258
1 vote

What is happening when a channel is pending?

What is happening when a channel is pending when opened? How long does it usually take? A node establishes a channel by sending an open_channel message to its desired peer. This message specifies the ...
user avatar
1 vote
Accepted

What is happening when a channel is pending?

Opening a channel involves sending an on-chain transaction (with a multisig output controlled by the channel’s participants), so when the channel is ‘pending’ it simply means this transaction is not ...
user avatar
  • 17.3k

Only top scored, non community-wiki answers of a minimum length are eligible