Bitcoin Forum
April 16, 2024, 08:58:43 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Lightning Network Question: Cost to open / close a channel  (Read 858 times)
Avz (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 1


View Profile
September 28, 2017, 01:36:12 PM
Merited by ABCbits (1)
 #1

As far as I understood a LN Channel is open and closed by their participants by broadcasting and confirming transactions on the chain, so they only pay those transactions fees and not all the other they may do while the channel is open. If that is right, the LN would work only for recurrent payments and not occasional transactions, right?

If I go everyday to the same coffee shop it would be worthy to open the channel with them, but not if I'm passing by one and decide to make a one time purchase. It seems that we are putting to much hope on the LN, but it wont solve a lot of problems. Is there anything I'm not getting right?
1713301123
Hero Member
*
Offline Offline

Posts: 1713301123

View Profile Personal Message (Offline)

Ignore
1713301123
Reply with quote  #2

1713301123
Report to moderator
1713301123
Hero Member
*
Offline Offline

Posts: 1713301123

View Profile Personal Message (Offline)

Ignore
1713301123
Reply with quote  #2

1713301123
Report to moderator
1713301123
Hero Member
*
Offline Offline

Posts: 1713301123

View Profile Personal Message (Offline)

Ignore
1713301123
Reply with quote  #2

1713301123
Report to moderator
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3360
Merit: 6505


Just writing some code


View Profile WWW
September 28, 2017, 03:34:09 PM
Merited by ABCbits (2)
 #2

As far as I understood a LN Channel is open and closed by their participants by broadcasting and confirming transactions on the chain, so they only pay those transactions fees and not all the other they may do while the channel is open.
Yes.

If that is right, the LN would work only for recurrent payments and not occasional transactions, right?
Kind of. Having an open payment channel with one party is really only good for recurring payments. However the lightning network expands beyond the one channel. You can have a channel open with someone who has a channel open with other people, and they have channels open with other people and so on. One of the main ideas of LN is that you can send occasional transactions by routing a payment through multiple payment channels that people have open with each other.

Suppose Person A has a channel open with B, and B has one with C. If A wanted to pay C, they could send money to B and B sends money to C via their respective open payment channels. The transactions used for this sending are special and make it so that the money will only actually move under specific circumstances. These transactions are called Hashed Timelocked Contracts. They make it so that B can only get the money from A if they have forwarded the money to C.

nicosey
Full Member
***
Offline Offline

Activity: 347
Merit: 109


View Profile
September 28, 2017, 04:59:29 PM
 #3

Isn't that just a standard transaction fee?  Is there any reason why it could be different?
Carlton Banks
Legendary
*
Offline Offline

Activity: 3430
Merit: 3071



View Profile
September 28, 2017, 07:38:20 PM
Merited by ABCbits (2)
 #4

Isn't that just a standard transaction fee?  Is there any reason why it could be different?

The 2-2 multisig will increase the size of the transaction compared to standard P2WPKH transactions.

The signature will be larger in proportion to the actual transaction information, so I think that will mean the fee increase is calculated differently than for regular P2SH multisig.... cannot fully remember how though (this is the implications of Segwit in operation, to explain)

Vires in numeris
Avz (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 1


View Profile
September 28, 2017, 09:58:28 PM
 #5

As far as I understood a LN Channel is open and closed by their participants by broadcasting and confirming transactions on the chain, so they only pay those transactions fees and not all the other they may do while the channel is open.
Yes.

If that is right, the LN would work only for recurrent payments and not occasional transactions, right?
Kind of. Having an open payment channel with one party is really only good for recurring payments. However the lightning network expands beyond the one channel. You can have a channel open with someone who has a channel open with other people, and they have channels open with other people and so on. One of the main ideas of LN is that you can send occasional transactions by routing a payment through multiple payment channels that people have open with each other.

Suppose Person A has a channel open with B, and B has one with C. If A wanted to pay C, they could send money to B and B sends money to C via their respective open payment channels. The transactions used for this sending are special and make it so that the money will only actually move under specific circumstances. These transactions are called Hashed Timelocked Contracts. They make it so that B can only get the money from A if they have forwarded the money to C.

that was very enlightening. Thank you very much!
It seems just a question of it being properly developed and largely adopted, so there is liquidity in the system
Kprawn
Legendary
*
Offline Offline

Activity: 1904
Merit: 1073


View Profile
September 30, 2017, 05:27:52 AM
 #6

As far as I understood a LN Channel is open and closed by their participants by broadcasting and confirming transactions on the chain, so they only pay those transactions fees and not all the other they may do while the channel is open.
Yes.

If that is right, the LN would work only for recurrent payments and not occasional transactions, right?
Kind of. Having an open payment channel with one party is really only good for recurring payments. However the lightning network expands beyond the one channel. You can have a channel open with someone who has a channel open with other people, and they have channels open with other people and so on. One of the main ideas of LN is that you can send occasional transactions by routing a payment through multiple payment channels that people have open with each other.

Suppose Person A has a channel open with B, and B has one with C. If A wanted to pay C, they could send money to B and B sends money to C via their respective open payment channels. The transactions used for this sending are special and make it so that the money will only actually move under specific circumstances. These transactions are called Hashed Timelocked Contracts. They make it so that B can only get the money from A if they have forwarded the money to C.

How long can these channels stay open? What happens if I send a tx to C and B closed his/her channel? Will it automatically

resend the tx to C? I am still trying to get my head around the whole concept and how this will impact the Blockchain. Will

the LN still generate enough tx's to sustain miners fees for miners to continue mining or will they have to switch to running

LN hubs to complement their income? .... Lots and lots of open questions.  Huh

THE FIRST DECENTRALIZED & PLAYER-OWNED CASINO
.EARNBET..EARN BITCOIN: DIVIDENDS
FOR-LIFETIME & MUCH MORE.
. BET WITH: BTCETHEOSLTCBCHWAXXRPBNB
.JOIN US: GITLABTWITTERTELEGRAM
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3360
Merit: 6505


Just writing some code


View Profile WWW
September 30, 2017, 05:50:23 AM
Merited by ABCbits (1)
 #7

How long can these channels stay open?
Indefinitely.

What happens if I send a tx to C and B closed his/her channel?
Then the transaction fails. C does not get his money from B and B does not get money from A.

Will the LN still generate enough tx's to sustain miners fees for miners to continue mining or will they have to switch to running LN hubs to complement their income?
No one knows; that requires predicting the future.

dadrdalk
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
September 30, 2017, 07:34:58 AM
 #8

What happens if I send a tx to C and B closed his/her channel?
Then the transaction fails. C does not get his money from B and B does not get money from A.

So if you use such chain for multiple payments and one participant in the chain closes prematurely, it is as if no payment has happened? Or is anything preventing this scenario?
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3360
Merit: 6505


Just writing some code


View Profile WWW
September 30, 2017, 03:56:40 PM
 #9

So if you use such chain for multiple payments and one participant in the chain closes prematurely, it is as if no payment has happened? Or is anything preventing this scenario?
No. Each send acts individually. If you make 3 payments and are in the middle of a fourth when one party in the chain closes a channel used in the payment, then only the fourth payment does not go through. The rest remain untouched. Note that this scenario can only happen if the preimages for the HTLCs are not available to everyone which means that the payment is not yet complete.

Pages: [1]
  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!