Pages:
Author

Topic: The Lightning Network FAQ - page 25. (Read 33426 times)

legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
November 21, 2021, 10:21:06 AM
Today, I wanted to fund my Phoenix Wallet. An on-chain deposit takes 1% (and a minimum of 10,000 sat) in fees to open a new channel. Since I already have open channels with sufficient incoming capacity, I found the best solution to be CoinPlaza.it: A 2 mBTC (the minimum) on-chain deposit results in 1.998 mBTC LN funds. Including on-chain fees, I saved over 95% compared to a direct deposit to Phoenix.

You can do the same (without an account) from FixedFloat.com, which has a lower minimum amount (but fees are higher).
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
November 21, 2021, 08:06:40 AM
So the other day one of my nodes had an issue and I shut it down:
https://bitcointalksearch.org/topic/m.58486063

Then a couple of posts later @Rath_ did point out that you could tweak the config files of both LND and c-lightning to change the lock times that you create and accept. I knew that but never really thought about it. We should probably come up with a list of "things you might not want to leave at default" that can be discussed.  Timelock / fees / min and max channel size / Huh

-Dave
legendary
Activity: 1876
Merit: 3139
November 20, 2021, 04:05:08 AM
I haven’t tried, or downloaded it, but it claims to be a wallet that focuses on good UX/UI for usability, and for users who want to try the Lightning Network for the first time.

I have actually tried it out some time ago and I really liked that it supports keysend payments. Thanks for reminding me about it; I will add it to the list.

By the way, in case some of you missed it, I created The Lightning Network node experience thread in which I and a few other members shared our statistics and feelings about running a Lightning Network node.
legendary
Activity: 2898
Merit: 1823
November 20, 2021, 01:21:28 AM
OP, another wallet for Lightning to include in your list. It’s non-custodial, https://blixtwallet.github.io/

I haven’t tried, or downloaded it, but it claims to be a wallet that focuses on good UX/UI for usability, and for users who want to try the Lightning Network for the first time.
legendary
Activity: 1876
Merit: 3139
November 05, 2021, 07:32:24 PM
Yeah, I'm not sure / confident about the whole backup & restore of the channel states and all, though..

There's a great entry in the documentation about various backup practices. You will probably end up using the backup plugin with a remote directory or some removable drive.

I would just get the new drive, close my channels and reinstall

You could simply copy your hsm_secret and lightningd.sqlite3 files to your new node. This way, you wouldn't have to close your channels. Just make sure to copy lightnind.sqlite3 while your node is not running and don't turn it on afterwards.
hero member
Activity: 910
Merit: 5935
not your keys, not your coins!
November 05, 2021, 07:06:08 PM
Is is possible to just not generate docs using a compile flag? Seen that before but not sure if it's supported here. I usually only install pips into virtualenv's; not sure if this would work here if I activate the environment before running make.

I wondered the same, especially after I noticed that the mrkd I get from pip3 install mrkd in Devuan/Debian 9 doesn't work with the installed Python 3.5.3.
After some fruitless digging through the Makefile and configure (for something like --no-docs) I gave up and just did:
Code:
sudo echo -e '#!/bin/sh\ntouch $2\nexit 0' > /usr/local/bin/mrkd
sudo chmod 755 /usr/local/bin/mrkd
make && sudo make install-program

This whole mrkd thing is a unnecessary annoyance IMO.
I love your solution, it's the kind of hacky thing I like to do as well! Cheesy
Since the syntax would be $ mrkd my-file.1.md my-file.1, your shell script just creates an empty file with the correct name so c-lightning is happy about the file's existence and the compilation runs smoothly! I don't use the manpage of it anyway, so that will be fine.

We can connect now, but maybe I'll swap out the drive for a larger one, so in that case it would be better to postpone the process Smiley

I don't mind if your node is offline for a couple of days after we open a channel. We can do whatever you are more comfortable with. Would you like to try opening a dual-funded channel with me? I could contribute at least 1M satoshi to the channel.
Yeah, I'm not sure / confident about the whole backup & restore of the channel states and all, though.. I would just get the new drive, close my channels and reinstall (I have a guide now, right Tongue) in the worst case, so let's open a channel after that. As for the capacity, 1M is not the amount I'd put on this old & worn out drive either, to be completely honest. Also one reason for swapping to a new SSD..
legendary
Activity: 1876
Merit: 3139
November 05, 2021, 05:53:05 PM
We can connect now, but maybe I'll swap out the drive for a larger one, so in that case it would be better to postpone the process Smiley

I don't mind if your node is offline for a couple of days after we open a channel. We can do whatever you are more comfortable with. Would you like to try opening a dual-funded channel with me? I could contribute at least 1M satoshi to the channel.
legendary
Activity: 1612
Merit: 1608
精神分析的爸
November 05, 2021, 02:51:41 PM
Code:
/bin/sh: 1: mrkd: not found
make: *** [doc/Makefile:107: doc/lightning-cli.1] Error 127
Edit: It looks like sudo pip3 install mrkd solved the problem. I am not sure why I didn't need it before.
mrkd is used to generate the documentation (manpages) from markdown files and before this release, the generated files were part of the source code. now you need to generate them yourself with mrkd
Is is possible to just not generate docs using a compile flag? Seen that before but not sure if it's supported here. I usually only install pips into virtualenv's; not sure if this would work here if I activate the environment before running make.

I wondered the same, especially after I noticed that the mrkd I get from pip3 install mrkd in Devuan/Debian 9 doesn't work with the installed Python 3.5.3.
After some fruitless digging through the Makefile and configure (for something like --no-docs) I gave up and just did:
Code:
sudo echo -e '#!/bin/sh\ntouch $2\nexit 0' > /usr/local/bin/mrkd
sudo chmod 755 /usr/local/bin/mrkd
make && sudo make install-program

This whole mrkd thing is a unnecessary annoyance IMO.
hero member
Activity: 910
Merit: 5935
not your keys, not your coins!
November 05, 2021, 06:51:20 AM
How do you recommend to update C-Lightning? I think this is how I did it so far, after having installed by compiling myself and checking out the correct release via git previously.

That's also how I have been doing it.
Alright, thanks!

By the way, how is your node n0nce?
It's running fine now; this node just uses Tor, nothing else, since it's simpler and (in my opinion) safer than exposing personal IP and stuff. Especially since for a while now, I don't get the usual 'new IP every 24h' anymore that I did in the past.

But I had some issues with my Tor config in the beginning. We can connect now, but maybe I'll swap out the drive for a larger one, so in that case it would be better to postpone the process Smiley

Code:
/bin/sh: 1: mrkd: not found
make: *** [doc/Makefile:107: doc/lightning-cli.1] Error 127
Edit: It looks like sudo pip3 install mrkd solved the problem. I am not sure why I didn't need it before.
mrkd is used to generate the documentation (manpages) from markdown files and before this release, the generated files were part of the source code. now you need to generate them yourself with mrkd
Is is possible to just not generate docs using a compile flag? Seen that before but not sure if it's supported here. I usually only install pips into virtualenv's; not sure if this would work here if I activate the environment before running make.
full member
Activity: 154
Merit: 177
November 04, 2021, 02:45:10 AM
Code:
cd lightning
git pull
git checkout v0.10.2
./configure
make -j $(nproc)
sudo make install
sudo service lightningd restart
you don't need the ./configure step if you don't change anything with configure

Code:
/bin/sh: 1: mrkd: not found
make: *** [doc/Makefile:107: doc/lightning-cli.1] Error 127
Edit: It looks like sudo pip3 install mrkd solved the problem. I am not sure why I didn't need it before.
mrkd is used to generate the documentation (manpages) from markdown files and before this release, the generated files were part of the source code. now you need to generate them yourself with mrkd
legendary
Activity: 2898
Merit: 1823
November 04, 2021, 02:19:42 AM
Does it say that Jesse Powell be implementing Lightning for Kraken soon, or is it just an article?

In December, they announced that the Lightning Network support was expected to be available in the first half of 2021. It looks like they are still working on it.

Exchanges should start becoming some of the main liquidity providers, and client-side UI providers for the Lightning Network, and bring it to a higher point of growth.

They probably don't feel any pressure to do so because: 1) The transaction fees have been extremely low for quite some time now. 2) Even if any large exchange implements Lightning late, there still will be a lot of people willing to open a channel with their node.


I believe there will come a point when we will truly sorry for the developers building Lightning, because they might be working veey hard for something that no one really wants. How many years has it been in development? Everyone is throwing money in shitcoin DeFi.
legendary
Activity: 1876
Merit: 3139
November 04, 2021, 01:51:18 AM
How do you recommend to update C-Lightning? I think this is how I did it so far, after having installed by compiling myself and checking out the correct release via git previously.

That's also how I have been doing it. This time, I can't compile the update and I am getting the following error ~1 minute after running make.

Code:
/bin/sh: 1: mrkd: not found
make: *** [doc/Makefile:107: doc/lightning-cli.1] Error 127

Edit: It looks like sudo pip3 install mrkd solved the problem. I am not sure why I didn't need it before.

By the way, how is your node n0nce?
hero member
Activity: 910
Merit: 5935
not your keys, not your coins!
November 03, 2021, 07:24:57 PM
c-lightning v0.10.2 has been released. You should upgrade your nodes as this update patches the CVE-2021-41592 vulnerability. LND users should also update to v0.13.3-beta.
How do you recommend to update C-Lightning? I think this is how I did it so far, after having installed by compiling myself and checking out the correct release via git previously.

Code:
cd lightning
git pull
git checkout v0.10.2
./configure
make -j $(nproc)
sudo make install
sudo service lightningd restart
legendary
Activity: 1876
Merit: 3139
November 03, 2021, 04:43:24 PM
c-lightning v0.10.2 has been released. You should upgrade your nodes as this update patches the CVE-2021-41592 vulnerability. LND users should also update to v0.13.3-beta.
full member
Activity: 154
Merit: 177
November 03, 2021, 08:58:06 AM
Does it say that Jesse Powell be implementing Lightning for Kraken soon, or is it just an article?
In December, they announced that the Lightning Network support was expected to be available in the first half of 2021. It looks like they are still working on it.
i wrote their support an email and they confirm what you said. in my own words: they are working on it and they will support it soonish (whatever soonish means). the support basically said nothing new...
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
November 03, 2021, 08:31:00 AM
Does it say that Jesse Powell be implementing Lightning for Kraken soon, or is it just an article?

In December, they announced that the Lightning Network support was expected to be available in the first half of 2021. It looks like they are still working on it.

Exchanges should start becoming some of the main liquidity providers, and client-side UI providers for the Lightning Network, and bring it to a higher point of growth.

They probably don't feel any pressure to do so because: 1) The transaction fees have been extremely low for quite some time now. 2) Even if any large exchange implements Lightning late, there still will be a lot of people willing to open a channel with their node.

You left out #3 withdrawal fees are a source of profit for exchanges.
https://support.kraken.com/hc/en-us/articles/360000767986-Cryptocurrency-withdrawal-fees-and-minimums
Quote
Bitcoin    0.00015 BTC (fee)    0.0005 BTC (min withdraw)
So at the moment $9.30 to withdraw. And according to mempool.space and a few others 4 sat/vb will get you into the next block.
And you have to have at least $30 in there to withdraw. How many people will just pay the fee or if they don't have 0.0005BTC trade it for something else (they get the trading fee) and then withdraw that (whatever that coin fee is)

Where if they are doing lightning they can't get away with charging that much. Because, if they do a lot of people will scream.

-Dave
legendary
Activity: 1876
Merit: 3139
November 03, 2021, 07:39:48 AM
Does it say that Jesse Powell be implementing Lightning for Kraken soon, or is it just an article?

In December, they announced that the Lightning Network support was expected to be available in the first half of 2021. It looks like they are still working on it.

Exchanges should start becoming some of the main liquidity providers, and client-side UI providers for the Lightning Network, and bring it to a higher point of growth.

They probably don't feel any pressure to do so because: 1) The transaction fees have been extremely low for quite some time now. 2) Even if any large exchange implements Lightning late, there still will be a lot of people willing to open a channel with their node.
legendary
Activity: 2898
Merit: 1823
November 03, 2021, 07:27:03 AM
wanted to share with everyone here another interesting article about the lightning network, which was published today by the Kraken exchange


Quote
The Lightning Network is a scalability solution built on top of #Bitcoin.

Read our article to learn about:
Benefits of the Lightning Network
History of the network
How Lightning Network works
https://www.kraken.com/learn/lightning-network


Does it say that Jesse Powell be implementing Lightning for Kraken soon, or is it just an article? It’s been years. Exchanges should start becoming some of the main liquidity providers, and client-side UI providers for the Lightning Network, and bring it to a higher point of growth.

legendary
Activity: 3304
Merit: 8633
icarus-cards.eu
October 29, 2021, 02:42:21 PM
wanted to share with everyone here another interesting article about the lightning network, which was published today by the Kraken exchange


Quote
The Lightning Network is a scalability solution built on top of #Bitcoin.

Read our article to learn about:
Benefits of the Lightning Network
History of the network
How Lightning Network works
https://www.kraken.com/learn/lightning-network
legendary
Activity: 1876
Merit: 3139
October 26, 2021, 03:21:00 AM
Sorry for a late reply. I have been slightly busy lately.

What's the relation between Bob's revocation key and Alice's revocation key? [...] Is there some sort of public-key cryptography involved in the ack_and_revoke?

This explanation should help you understand it. Here you can find the formulas which are used to calculate revocation public and private keys

revoke_and_ack message looks like this:

Code: (https://github.com/lightningnetwork/lightning-rfc/blob/master/02-peer-protocol.md#completing-the-transition-to-the-updated-state-revoke_and_ack)
   type: 133 (revoke_and_ack)
    data:
        [channel_id:channel_id]
        [32*byte:per_commitment_secret]
        [point:next_per_commitment_point]

Your node must provide per_commitment_secret associated with the next_per_commitment_point which you sent previously in either funding_locked or revoke_and ack message.

Because I've probably confused its meaning. Isn't HTLC a hashed timelock contract? Doesn't that mean that it's an “agreement”? A condition where both exchange commitment transactions?

An HTLC is basically an additional output of a commitment transaction with a specific locking script. If an HTLC is below the dust limit then it is added to the transaction fee (only when the payment has not been settled yet). There is no real incentive for the other party to cheat in this particular case. If you are not comfortable with that, you can always refuse to route payments below the dust limit.

I am still not sure why you mentioned it. If Alice broadcast the first commitment transaction (the one which refunds her 10 BTC), Bob could simply publish a penalty transaction because Alice revealed the secret needed to derive the revocation key for her outdated commitment.

It wouldn't make sense for Bob to broadcast the second commitment transaction if Alice broadcast the first one because: A) It would be rejected by most nodes due to double-spend B) It would probably be more expensive

But, it wouldn't be (acknowledged and) revoked. How would Bob have gained access to the very first commitment transaction's revocation key? Don't they both publish penalties only if the transaction they're publishing is not the newest commitment transaction (that hasn't been revoked yet)?

You're right. I assumed that they managed to sign the second commitment transaction successfully. If we assume that they failed to sign it, there is no need to worry about that HTLC. If Alice refuses to revoke her previous commitment and sign Bob's new transaction, Bob should not reveal the payment preimage needed to claim that HTLC.
Pages:
Jump to: