<p>This is not so easy. Infact it seems almost impossible to be done in an elegant way. While the capacity of public channels is known to everyone on the network the balance of each channel is unknown.</p>

<p>As nodes sharing their balance is</p>

<ol>
<li>a privacy issue, </li>
<li>technically in a peer-to-peer network difficult as the channel state / balance might change several times per second and gossip protocol propagation takes longer and</li>
<li>Hard to proof validity of a published the channel Ballance</li>
</ol>

<p>We usually don't know the balance. </p>

<p>Thus a Sender could just use try and error which is particularly inefficient in large networks as the number of paths grows quite quickly. </p>

<p>In practice node operators could use "manipulated onions" to probe nodes for a current minimal channel balance. Which obviously is also difficult as the balance might change quickly. </p>

<p>In precise people work on AMP routing which means doing several small payments (maybe even over several paths) instead of a large one or JIT routing which allows nodes along a path to rebalance their channels if they don't have enough balance to forward the onion. (disclaimer I proposed JIT routing and it is not clear yet if it becomes a lightning standard) </p>

<p>On a Side note :maybe you want to add my youtube channel with lightning educating to your mega thread (which in the past helped me a lot! Thanks!) </p>

CC BY-SA 4.0
2019-04-25T23:04:11.773Z
2019-04-25T23:04:11.773Z
Rene Pickhardt
<p>It's all done in the process of finding the best route between a payee and a seller. <a href="https://bitcoin.stackexchange.com/questions/43687/how-are-paths-found-in-lightning-network">This post details that process pretty thoroughly</a></p>

<p>Relevant tidbit: </p>

<blockquote>
  <p>Altogether, "shortest" would be some combination of reachable, sufficient liquidity, lowest fee, fewest hops, and most reliable. As Hash Time Lock Contracts are nearly trustless (only potentially locking your money for some time), and operating a routing wallet should have low resource requirements, it seems likely that the payment routing market should achieve a healthy competition, therefore discouraging nodes to lock money by establishing channels just to earn fees from routing. Payment channels between nodes that have some form of regular business relationship seem more likely as there is an immediate benefit.</p>
</blockquote>

<p>Context and explanation: The post describes the process that nodes in the network rank their connections by desirability in reference to a transaction. The node that is doing the calculations takes in many factors include reachability, sufficient liquidity, lowest fee, fewest hops, and reliability. </p>

CC BY-SA 3.0
2018-01-13T21:21:11.780Z
2018-01-13T21:21:11.780Z
arshbot
<p>I'm creating a "<a href="https://www.reddit.com/r/Bitcoin/comments/7ojkoz/lightning_network_megathread/" rel="nofollow noreferrer">Megathread</a>" regarding the Lightning Network and have been fielding questions. To help obtain the correct answers with sources, I'm reaching out to the Bitcoin StackExchange.</p>

<p>I was asked to make a separate post for each question.</p>

<p>Thank you in advance for helping the community understand more about this great technology.</p>

<lightning-network>
How can you make sure that there will be routes with large enough balances to handle transactions?
Brandon Gordon
# How can you make sure that there will be routes with large enough balances to handle transactions?

(Asked by: username_0 on 2018-01-09)

I'm creating a "[Megathread](https://www.reddit.com/r/Bitcoin/comments/7ojkoz/lightning_network_megathread/)" regarding the Lightning Network and have been fielding questions. To help obtain the correct answers with sources, I'm reaching out to the Bitcoin StackExchange.

I was asked to make a separate post for each question.

Thank you in advance for helping the community understand more about this great technology.

**Tags:** lightning-network


---

## 2 answers

### Answer by username_1 on 2019-04-25. Score: 1

This is not so easy. Infact it seems almost impossible to be done in an elegant way. While the capacity of public channels is known to everyone on the network the balance of each channel is unknown.

As nodes sharing their balance is

1. a privacy issue,
2. technically in a peer-to-peer network difficult as the channel state / balance might change several times per second and gossip protocol propagation takes longer and
3. Hard to proof validity of a published the channel Ballance

We usually don't know the balance.

Thus a Sender could just use try and error which is particularly inefficient in large networks as the number of paths grows quite quickly.

In practice node operators could use "manipulated onions" to probe nodes for a current minimal channel balance. Which obviously is also difficult as the balance might change quickly.

In precise people work on AMP routing which means doing several small payments (maybe even over several paths) instead of a large one or JIT routing which allows nodes along a path to rebalance their channels if they don't have enough balance to forward the onion. (disclaimer I proposed JIT routing and it is not clear yet if it becomes a lightning standard)

On a Side note :maybe you want to add my youtube channel with lightning educating to your mega thread (which in the past helped me a lot! Thanks!)


---

### Answer by username_2 on 2018-01-13. Score: 0

It's all done in the process of finding the best route between a payee and a seller. [This post details that process pretty thoroughly](https://bitcoin.stackexchange.com/questions/43687/how-are-paths-found-in-lightning-network)

Relevant tidbit:

> Altogether, "shortest" would be some combination of reachable, sufficient liquidity, lowest fee, fewest hops, and most reliable. As Hash Time Lock Contracts are nearly trustless (only potentially locking your money for some time), and operating a routing wallet should have low resource requirements, it seems likely that the payment routing market should achieve a healthy competition, therefore discouraging nodes to lock money by establishing channels just to earn fees from routing. Payment channels between nodes that have some form of regular business relationship seem more likely as there is an immediate benefit.

Context and explanation: The post describes the process that nodes in the network rank their connections by desirability in reference to a transaction. The node that is doing the calculations takes in many factors include reachability, sufficient liquidity, lowest fee, fewest hops, and reliability.


---

