Bitcoin Forum
June 22, 2024, 05:36:37 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Mempool and the Lightening Network  (Read 91 times)
Dunamisx (OP)
Hero Member
*****
Offline Offline

Activity: 896
Merit: 545


View Profile
March 12, 2022, 08:18:15 AM
 #1

As lightening network is mainly design to provide solution to scalability and a fast and secured transaction while mempool is used in storing any unconfirmed transaction information.

Does the lightening network by any means require the use of mempool in transaction verification or it does byepass mempool?

In other words, could unverified transaction occur with the use of lightening network that may require the service of mempool?



BLUM - All Crypto — One App

DISCARD TWITTER LINKEDIN TELEGRAM LINKTR.EE


LoyceV
Legendary
*
Offline Offline

Activity: 3346
Merit: 16888


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
March 12, 2022, 08:55:30 AM
 #2

In other words, could unverified transaction occur with the use of lightening network that may require the service of mempool?
It depends Smiley
Before you can use the Lightning Network, your on-chain transaction needs to be confirmed to open the channel. If mempool is full, high on-chain fees can make it undesirable to open a channel, or your funding transaction will be stuck in mempool for a very long time.
But I've also used Phoenix Wallet's implementation: their channel-opening is custodial, so after funding the wallet, they open a channel for you. But since they open the channel to their own node, they trust it already before it's confirmed. In other words: you can make payments while the transaction that funds your channel is still "stuck" in mempool.

Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3132



View Profile
March 12, 2022, 09:00:32 AM
Last edit: March 12, 2022, 09:45:21 AM by Rath_
Merited by LoyceV (6), ABCbits (4), BlackHatCoiner (2)
 #3

Does the lightening network by any means require the use of mempool in transaction verification or it does byepass mempool?

Lightning Network nodes need to watch the mempool and the blockchain because they must:

a) check if their channel partner didn't cheat by broadcasting some old channel state (using a revoked commitment transaction),
b) check if any of the known channels' funding transactions have been spent,
c) check if a funding transaction for a specific channel has been confirmed upon receiving "channel_announcement" message.

When you send a transaction over the Lightning Network, you don't need to obtain any data from the mempool. Lightning Network nodes maintain a network graph of all channels so that they can easily and trustlessly calculate a path for the payment. Removal and addition of nodes based on the (un)confirmed transactions is a completely separate process.
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!