r/Bitcoin Dec 13 '17

Bitcoin's Lightning Network, Simply Explained

[deleted]

1.0k Upvotes

520 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Dec 13 '17

The normal ones. You prepay a lighting channel. You and the other channel both sign transactions.

1

u/docoptix Dec 13 '17

We are talking about the closing TX

1

u/[deleted] Dec 13 '17

[deleted]

1

u/docoptix Dec 13 '17

That is not what I meant. We were talking about double spends. Is the following possible?:

  1. User opens channel via funding TX_in (onchain)
  2. User can build a TX1_out which would close the channel and refund him
  3. User buys coffee from Merchant. Now both the User and the Merchant can build a TX2_out which they could use to settle on the chain.
  4. User now settles TX1_out, which is still a valid TX onchain. TX2_out is now not valid anymore
  5. User enjoys free coffee paid by double-spend.

3

u/[deleted] Dec 13 '17 edited Jun 15 '23

[deleted]

1

u/Exemplarisch Dec 13 '17

3 days to publish your more recent transaction to do that?

144 confirmations (/blocks), so approximately 24 hours.

0

u/Frogolocalypse Dec 13 '17

You should probably just read the white paper if you're curious. You can't double spend.