9
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 ...
8
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 ...
7
votes
Accepted
What are 'accounts.sqlite3' and 'emergency.recover' and why might I want to back them up?
The accounts.sqlite3 file is managed by the built-in plugin bkpr (the bookkeeper plugin). It tracks each individual coin movement that was performed while the plugin was running, and will give ...
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. ...
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 ...
5
votes
Lightning channel decrease capacity
As mentioned by Antoine, Alice and Bob could make a transaction to close the channel, Alice could use her payout to make the payment, and then Alice could use the change of that payment reopen the ...
5
votes
Accepted
Can a miner open a Lightning channel with a coinbase output?
After thinking some more about it: it would be impractical to open a channel with a coinbase output.
For one, there is the maturation period for coinbase outputs. Since coinbase outputs can only be ...
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 ...
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.
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 ...
4
votes
Lightning channel decrease capacity
If you mean decreasing the capacity of the channel to 1.5BTC in order to withdraw 0.5BTC onchain, it is possible in theory but not yet part of the Lightning Network protocol nor its implementations. ...
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 ...
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.
...
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 ...
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://...
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-...
3
votes
Accepted
What is involved in the "database compaction" of a LND node?
The compaction is only relevant for bbolt database files, which are very common with lnd. In this case, the channel database is stored as a bbolt file named channel.db. Note that you can also use ...
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 ...
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
// ...
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 ...
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 ...
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 ...
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 ...
2
votes
Can we send fund from one channel to another in Lightning?
The Lightning Network is a network of routed payment channels. You can transfer funds from one channel to another by finding a route and adjusting the balances of the channel participants along the ...
2
votes
In the Lightning Network, what risks if any are associated with allowing a remote node to be offline for too long?
I'm not sure what you mean by the "remote channel". If you don't control the channel and you grant full access to a third party to manage your Lightning node/channel then the worst they can ...
2
votes
Accepted
In the Lightning Network, what risks if any are associated with allowing a remote node to be offline for too long?
You only need be concerned about your own uptime. If your counterparty is offline for extended periods, they are at risk of being cheated by you, but it does not put you at risk.
However, since ...
1
vote
Why would a popular e-commerce lack incoming liquidity?
This is a matter of liquidity. A payment channel of 1BTC may only transfer at most 1BTC [0] in each direction.
Let's take an example: Alice and Bob have a 1BTC payment channel:
Alice <- 1BTC -> ...
1
vote
Does the payment for both parties are settled instantly in Lightning Network
The time lock mechanism in uncooperative channel closes exists to create a dispute period during which the other party (or a watchtower on its behalf) can publish the "penalty transaction" ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
channels × 44lightning-network × 35
lightning-network-daemon × 12
core-lightning × 9
ln-opening-channels × 4
lightning-routing × 3
hash-time-locked-contract × 3
ln-closing-channels × 3
ln-channel-balance-management × 3
micropaymentchannels × 2
ln-gossip × 2
bitcoind × 1
multi-signature × 1
privacy × 1
full-node × 1
testnet × 1
payment × 1
backup × 1
terminology × 1
balance × 1
coinbase-transaction × 1
database × 1
bitcoin-wallet-app × 1
tor × 1
replace-by-fee × 1