1

According to this article article, all hops along the route must have sufficient liquidity to process any payment they wish to service.

However, in LN, new commitments may not to be broadcast to the blockchain until one wants to close a payment channel. How does LN know that a node has sufficient liquidity when a node has paid out all its bitcoins but the transactions have not been broadcast yet?

4

Lightning Network nodes have their own P2P network where they send messages to each other containing information about their channels and their states. So a node will receive messages from the other nodes on the network that describe the available channels and their liquidity. So a node can build an internal map of the network's channels and the balances for each node in each channel. With this map, it can then plot a route for each payment.

  • Is it not impossible to keep this up to date? I mean imagine the number of messages that need to be sent to everybody everytime somebody makes a tx. – Ini Oct 2 '18 at 10:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.