mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-18 21:35:24 +01:00
75a9dc9103
* The maximal reduction in the probability is limited to 0.5 (previously ~0.05), such that we don't get too low apriori probabilities. Otherwise, this may lead to a too strong selection of large (and maybe expensive) channels. A two-hop path would get total probability penalties of: - 1000PPM/(0.6*0.6) = 2778 PPM in the unsaturated case - 1000PPM/(0.6*(0.6*0.5)) = 5556 PPM in the saturated case, where the second hop is saturated The difference in PPM of 2778 PPM should be enough to bias towards the first path. * The smearing factor is reduced. Previously we had to keep a higher smearing factor in order to make the capacity factor not go to zero for high amounts, to still give a fully saturated channel a chance. This is not needed anymore due to the capping to 0.5. A lower value of the smearing factor lets us more precisely choose a capacity fraction and the capacity factor is more neutral when it comes to intermediate amounts. We set a conservative default value for the capacity fraction, which still has the effect of discarding exhausted channels, giving a noticeable effect when about 90% of the capacity is being used. |
||
---|---|---|
.. | ||
chainview | ||
localchans | ||
route | ||
shards | ||
testdata | ||
ann_validation.go | ||
bandwidth_test.go | ||
bandwidth.go | ||
control_tower_test.go | ||
control_tower.go | ||
errors.go | ||
graph.go | ||
heap_test.go | ||
heap.go | ||
integrated_routing_context_test.go | ||
integrated_routing_test.go | ||
log.go | ||
missioncontrol_state_test.go | ||
missioncontrol_state.go | ||
missioncontrol_store_test.go | ||
missioncontrol_store.go | ||
missioncontrol_test.go | ||
missioncontrol.go | ||
mock_graph_test.go | ||
mock_test.go | ||
nodepair.go | ||
notifications_test.go | ||
notifications.go | ||
pathfind_test.go | ||
pathfind.go | ||
payment_lifecycle_test.go | ||
payment_lifecycle.go | ||
payment_session_source.go | ||
payment_session_test.go | ||
payment_session.go | ||
probability_apriori_test.go | ||
probability_apriori.go | ||
probability_bimodal_test.go | ||
probability_bimodal.go | ||
probability_estimator_test.go | ||
probability_estimator.go | ||
README.md | ||
result_interpretation_test.go | ||
result_interpretation.go | ||
router_test.go | ||
router.go | ||
setup_test.go | ||
stats.go | ||
unified_edges_test.go | ||
unified_edges.go | ||
validation_barrier_test.go | ||
validation_barrier.go |
routing
The routing package implements authentication+validation of channel announcements, pruning of the channel graph, path finding within the network, sending outgoing payments into the network and synchronizing new peers to our channel graph state.
Installation and Updating
$ go get -u github.com/lightningnetwork/lnd/routing