routing: add error case for zero capacity

Since no edge should have a zero capacity associated with it, passing a
zero capacity to the bimodal probability calculation results now in an
error.
This commit is contained in:
bitromortac committed 2023-03-23 11:12:10 +01:00
1 parent 7df1482cfc
commit 4aa90cf474
3 files changed
+27 -5

No files matched your search

@@ -459,6 +459,10 @@ in the lnwire package](https://github.com/lightningnetwork/lnd/pull/7303)
https://github.com/lightningnetwork/lnd/pull/6815)
* [The a priori capacity factor is made configurable and its effect is
limited.](https://github.com/lightningnetwork/lnd/pull/7444)
* Local edges and hop hints [are extended with a
capacity](https://github.com/lightningnetwork/lnd/pull/7520) to avoid channel
white listing in probability calculations. The influence of the node
probability is reduced.
## Configuration
* Note that [this pathfinding change](https://github.com/lightningnetwork/lnd/pull/6815)