Bitcoin Forum
May 06, 2024, 12:30:16 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 [25] 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 ... 78 »
  Print  
Author Topic: The Lightning Network FAQ  (Read 32064 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic. (37 posts by 1+ user deleted.)
d5000
Legendary
*
Offline Offline

Activity: 3906
Merit: 6186


Decentralization Maximalist


View Profile
October 22, 2020, 05:06:10 AM
Merited by LoyceV (6), suchmoon (4)
 #481

Once a 2nd major exchange enables LN deposits & withdrawals, all of them will be essentially forced to do it so as not to lose out in the arbitrage battle.
Arbitrage is actually really an excellent point - this could perhaps even be Lightning's killer app, as payments in BTC (be it per LN or not) are still not too popular, but the speculation business with BTC is thriving as never. And it would offer real added value for arbitrageurs.

So maybe Bitstamp customers should spam them with feature requests to try to get it added ASAP? If they already operate a node (and have already more than a year of experience with it), it should not be too difficult for them.

However questionable Tether is as a concept, that would be a pretty remarkable facility for Bitfinex traders to have at their disposal. I thought that Tether had changed into an Ethereum based token though?
Tether currently operates on several blockchains. Bitcoin (via Omni and also on the Liquid sidechain) continues to be one of them, but they added Ethereum, EOS and also some minor altcoins like Tron, SLP, OMG, Algorand and Nano. See https://tether.to/faqs/ .

Tether could also be huge for LN, because once it's possible to transfer an "USD token" around without high delays, the arbitrage business would get a new thing to play with. And it would also perhaps mean that the "minor altcoin" incarnations of Tether would slowly die because they wouldn't offer more transaction speed than the Bitcoin-based TUSD.

But as far as I understand the concept of "tokens on LN", Tether channels would not work for Bitcoin and vice versa. (There could actually exist some magic tech I am not aware of, but how should the HTLC concept work for different tokens with different values if the tokens aren't locked each one separately?) Anyway, it would bring increased publicity for LN. I also do not really like Tether but if it helps ...

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
The trust scores you see are subjective; they will change depending on who you have in your trust list.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
darkv0rt3x
Hero Member
*****
Offline Offline

Activity: 1204
Merit: 658


I rather die on my feet than to live on my knees


View Profile
October 22, 2020, 07:36:05 PM
Last edit: October 22, 2020, 08:25:34 PM by darkv0rt3x
 #482

Hi again...

I was expecting to understand the values on my post above but I think that can wait. I have other questions I need to see if my reasoning is correct.

Is it correct to assume that command fundchannel, is a combination of commands fundchannel_start and fundchannel_complete ??

Also, what would be the options to use in argument announce of command fundchannel_start? I can't see nothing about the options available in the docs (lightning-cli help fundchannel_start)?

Bitcoin is energy. Bitcoin is freedom
I rather die on my feet than living on my knees!
Wind_FURY
Legendary
*
Offline Offline

Activity: 2912
Merit: 1825



View Profile
October 23, 2020, 05:57:03 AM
 #483


Once a 2nd major exchange enables LN deposits & withdrawals, all of them will be essentially forced to do it so as not to lose out in the arbitrage battle.

Arbitrage is actually really an excellent point - this could perhaps even be Lightning's killer app, as payments in BTC (be it per LN or not) are still not too popular, but the speculation business with BTC is thriving as never. And it would offer real added value for arbitrageurs.


I believe when Taproot is activated, helping obfuscate the opening of channels, a Lightning privacy-app might be THE killer-app the community is waiting for in my opinion.

██████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
██████████████████████
.SHUFFLE.COM..███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
█████████████████████
████████████████████
██████████████████████
████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
██████████████████████
██████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
.
...Next Generation Crypto Casino...
Carlton Banks
Legendary
*
Offline Offline

Activity: 3430
Merit: 3071



View Profile
October 23, 2020, 10:51:03 AM
 #484

I believe when Taproot is activated, helping obfuscate the opening of channels, a Lightning privacy-app might be THE killer-app the community is waiting for in my opinion.

that would involve unannounced channels too, Lightning network channels are announced to other nodes by default. Sometimes unannounced channels enable types of attack, but at least in the case of spamming, they help mitigate against attacks.

With good routing algorithms (i.e. involving multipath routes) and effective anti-spam, I would imagine there would fewer benefits to unannounced channels. But this of course means that LN nodes with a complete network-wide routing table still know the channel balances, and so privacy is harmed. IIUC, it's not possible to run the LN effectively if all channels are unannounced, and realistically it's impossible to have entirely private channels (as your channel counterparty always knows the channel exists)

this does not preclude the possibility of having 2 or more Lightning nodes, of course (I would suggest that most people running their own nodes will end up opening a 2nd, if only temporarily to improve anonymization of funds).

Vires in numeris
DaveF
Legendary
*
Offline Offline

Activity: 3472
Merit: 6263


Crypto Swap Exchange


View Profile WWW
October 27, 2020, 02:06:05 PM
 #485

And as d5000 said you can manage fees by opening channels at certain times. But if I do keep a bunch of channels open AND fees stay high at some point I am going to empty the smaller channels and only deal with larger liquidity providers. That is going to be the issue.
Because, yeah I can say open this with 1 or 2 sat fee because I know it will open overnight on a weekend. But at some point who wants to plat that game.
-Dave

Quoting myself here because the last few days have proved this true at least for me.
I have a few new channels that I want to open but with the fees what they are since at least Friday it's not going to happen soon.
No, I am not going to send it at a very low fee and "possibly" they will confirm. Just going to sit here and wait for now.

How many other people are doing the exact same thing?

-Dave

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
DaveF
Legendary
*
Offline Offline

Activity: 3472
Merit: 6263


Crypto Swap Exchange


View Profile WWW
October 31, 2020, 12:11:04 PM
 #486

Stupid question which is a follow up to my above post:

So I have a lightning node with 0 funds, I want to open a couple of channels but would 1st have to send funds to the node wallet.
Can I just run importprivkey in wallet that my node uses and then open channels with those funds? I don't see why it would not work but I'm not sure.
Since the mempool is still pretty full I figure it would save me some tx fees.

Normally I would just do it and see what happens but the node is on a RPi and when you import a key and rescan the blockchain it takes a really long time.

Thanks,
Dave

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
LoyceV
Legendary
*
Offline Offline

Activity: 3304
Merit: 16599


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
October 31, 2020, 02:41:52 PM
Merited by DaveF (2), Timelord2067 (1)
 #487

Normally I would just do it and see what happens but the node is on a RPi and when you import a key and rescan the blockchain it takes a really long time.
You're going to like the start_height option I recently noticed:
First:
Code:
importprivkey "privkey" ( "label" ) ( rescan )
Use "false" for rescan.
Next:
Code:
rescanblockchain ("start_height") ("stop_height")
If you lookup the address on a block explorer, you'll know which blocks to rescan.

darkv0rt3x
Hero Member
*****
Offline Offline

Activity: 1204
Merit: 658


I rather die on my feet than to live on my knees


View Profile
October 31, 2020, 04:03:30 PM
Merited by DaveF (2)
 #488

Normally I would just do it and see what happens but the node is on a RPi and when you import a key and rescan the blockchain it takes a really long time.
You're going to like the start_height option I recently noticed:
First:
Code:
importprivkey "privkey" ( "label" ) ( rescan )
Use "false" for rescan.
Next:
Code:
rescanblockchain ("start_height") ("stop_height")
If you lookup the address on a block explorer, you'll know which blocks to rescan.

If you guys talking about bitcoind, then you can run scantxoutset command.

Code:
bitcoin-cli scantxoutset start "[\"addr(address_here)\"]"

Bitcoin is energy. Bitcoin is freedom
I rather die on my feet than living on my knees!
DaveF
Legendary
*
Offline Offline

Activity: 3472
Merit: 6263


Crypto Swap Exchange


View Profile WWW
October 31, 2020, 04:43:55 PM
 #489

...

...

Ok so that gets the coins to the wallet, I'm hoping that LND should have no issues with it.
I could just see it not accepting any coins that it did not see coming into the wallet if they were not part of the original HD wallet.
Will check when I get home, if not no big deal just trying to save some fees.

-Dave

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
darkv0rt3x
Hero Member
*****
Offline Offline

Activity: 1204
Merit: 658


I rather die on my feet than to live on my knees


View Profile
October 31, 2020, 06:52:36 PM
 #490

...

...

Ok so that gets the coins to the wallet, I'm hoping that LND should have no issues with it.
I could just see it not accepting any coins that it did not see coming into the wallet if they were not part of the original HD wallet.
Will check when I get home, if not no big deal just trying to save some fees.

-Dave

I'm not sure what you mean by "gets the coins to the wallet". I'm also new to Lightning, but from my (superficial) understanding, the command I suggested just outputs a JSON object with the balance of that address (not wallet), the blockheight the transaction was included in and a few more fields. Basically is a blockchain explorer from the command line, using Bitcoin Core RPC calls.

Bitcoin is energy. Bitcoin is freedom
I rather die on my feet than living on my knees!
DaveF
Legendary
*
Offline Offline

Activity: 3472
Merit: 6263


Crypto Swap Exchange


View Profile WWW
October 31, 2020, 10:17:43 PM
 #491

I'm not sure what you mean by "gets the coins to the wallet". I'm also new to Lightning, but from my (superficial) understanding, the command I suggested just outputs a JSON object with the balance of that address (not wallet), the blockheight the transaction was included in and a few more fields. Basically is a blockchain explorer from the command line, using Bitcoin Core RPC calls.

In the early early days of LND I had an issue where I just moved the wallet.dat file from one machine to another and although I could spend from the wallet on the box with no issues I could not open a channel with the exact same funds. General consensus at the time was it was something odd in my setup. I never got around to trying it again and forgot about it till I had the idea of importing keys instead of sending funds.

-Dave

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
arrowlove
Newbie
*
Offline Offline

Activity: 26
Merit: 5


View Profile
November 01, 2020, 02:33:42 AM
Merited by d5000 (1)
 #492



Any recommended atomic swap services? 

Is swap.lightning-network.ro legit?
https://1ml.com/node/03c492f46d8e0a6256bb9c5c42f2aed24717f70a3f39e0961419dee511688e3110

how to use 1ml.com or any other Lightning Network Search and Analysis Engine to verify a channel is cooperating, not likely to shut down unexpectedly, "legit" ?

could not post to Lightning Network Discussion Thread https://bitcointalk.org/index.php?topic=4638321.0 so figured this was the next best place with many of the same contributors.
Timelord2067
Legendary
*
Offline Offline

Activity: 3668
Merit: 2217


💲🏎️💨🚓


View Profile
November 01, 2020, 08:00:34 AM
Merited by DaveF (1)
 #493

So I have a lightning node with 0 funds, I want to open a couple of channels but would 1st have to send funds to the node wallet.
Can I just run importprivkey in wallet that my node uses and then open channels with those funds? I don't see why it would not work but I'm not sure.

If you need to recharge a node I've got ~ $1,000 in a half dozen channels and would be willing to do a 1:1 swap for on-chain funds.

Quote
Since the mempool is still pretty full I figure it would save me some tx fees.

We could discuss a deferred "repayment" via the block-chain at a later date when the TX fees stop mooning.

PrimeNumber7
Copper Member
Legendary
*
Offline Offline

Activity: 1624
Merit: 1899

Amazon Prime Member #7


View Profile
November 01, 2020, 06:45:45 PM
 #494



Any recommended atomic swap services? 

Is swap.lightning-network.ro legit?
https://1ml.com/node/03c492f46d8e0a6256bb9c5c42f2aed24717f70a3f39e0961419dee511688e3110
From a technical perspective, it is difficult to tell if a btc <--> lighting btc exchange service is legitimate. You will have to do your own research and use your own good judgment before using one of these services. I understand these services are not closing/opening channels with you to exchange coin for lighting coin. Using them will require you to trust the business you are dealing with.

There are also services that will open a channel with you that has inbound capacity (so you can receive lighting coin) in exchange for a fee. Similarly, you will need to trust this service to follow through on their promises.
arrowlove
Newbie
*
Offline Offline

Activity: 26
Merit: 5


View Profile
November 01, 2020, 07:26:46 PM
 #495

Thank you PrimeNumber7

That was a useful overview that gives some direction

Sounds like we all may want to keep one eye open for lightning scams on the horizon.......
DaveF
Legendary
*
Offline Offline

Activity: 3472
Merit: 6263


Crypto Swap Exchange


View Profile WWW
November 02, 2020, 12:28:02 PM
 #496

So I have a lightning node with 0 funds, I want to open a couple of channels but would 1st have to send funds to the node wallet.
Can I just run importprivkey in wallet that my node uses and then open channels with those funds? I don't see why it would not work but I'm not sure.

If you need to recharge a node I've got ~ $1,000 in a half dozen channels and would be willing to do a 1:1 swap for on-chain funds.

Quote
Since the mempool is still pretty full I figure it would save me some tx fees.

We could discuss a deferred "repayment" via the block-chain at a later date when the TX fees stop mooning.

Thanks for the offer but I need to open some channels between my own nodes not use other channels.
I should have enough funds in the wallet to open the channels to do the testing that I want at the moment.

-Dave


█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pmalek
Legendary
*
Offline Offline

Activity: 2758
Merit: 7132



View Profile
November 05, 2020, 05:19:20 PM
 #497

I am sorry if this has been discussed before. This thread is huge and has 27 pages, it's hard to keep track of everything.

Let's consider the following scenario.
I finally persuade my local grocery store to accept crypto payments. Because of the scalability constrains, we can't use regular on-chain transactions. I have no intentions to wait at the cashier's for 10+ minutes for the transaction to confirm. I am also not interested in paying $10-20 in fees for a fast next-block confirmation, and I need to go and put the damn beer in the fridge. The store on the other hand, won't take 0-confirmation transactions because they know about the dangers of double spending.

The solution - the lightning network.

We open up a payment channel, I do my weekly grocery shopping and make my way to the cashier. When I try to pay, I realize that I cannot do it because:

Why can't I receive coins?

In order to receive Lightning payments, some conditions must be met:

1. Nothing can be received immediately after creating a new payment channel, as ‘room’ for incoming funds has to be made by spending some funds first. A payment channel can be thought of as a full bottle of water: in order to pour something in one first has to pour something out.

1. How do I pay for my groceries if the store can't immediately accept LN payments?
2. Has this been changed and configured differently in the meantime?
3. Are the bottles full at both ends of the payment channel or whose bottle is empty as soon as the channel is created?

     

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
November 05, 2020, 05:54:47 PM
 #498

I don't know if someone can confirm this and I ought to try it but I assumed if you have a channel opened with you by someone else, that part of the funds also become inbound capacity.

It'd make sense for a grocery store to do this as it'd also mean you don't need Internet to be able to spend your funds (you still need to sign a transaction but only they need Internet in order to process it)...

At the moment when you open a channel, you're the only one who funds it. There's a chance this'll change but for now that's how it is.
Carlton Banks
Legendary
*
Offline Offline

Activity: 3430
Merit: 3071



View Profile
November 05, 2020, 06:09:14 PM
Merited by ABCbits (1), jackg (1), Pmalek (1)
 #499

@Pmalek

the key phrase in your explanation is here:

We open up a payment channel

...because if you open a channel directly to the grocery place, then your outgoing capacity is their incoming capacity. For that channel only.

So it would be no problem in that case, but the grocery place would get some info about your on-chain funds (i.e. how much change you received from the tx that opened the channel to them)

Vires in numeris
Timelord2067
Legendary
*
Offline Offline

Activity: 3668
Merit: 2217


💲🏎️💨🚓


View Profile
November 05, 2020, 11:52:31 PM
 #500

We open up a payment channel,

Did you wait for the transaction (to open a channel with the other side) to confirm *before* you tried to send funds to that person?   And, was the channel opened directly with that other side, or through a third party?  What LN wallets are you both using?

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 [25] 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 ... 78 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!