routing: create PathFindingConfig for global parameters

This commit is contained in:
Joost Jager committed 2019-07-18 15:49:25 +02:00
1 parent 377b7bf3ce
commit 34b264a3d8
9 files changed
+83 -56

No files matched your search

+3 -9
View File
@@ -38,15 +38,9 @@ type SessionSource struct {
// execution.
MissionControl MissionController
// PaymentAttemptPenalty is the virtual cost in path finding weight
// units of executing a payment attempt that fails. It is used to trade
// off potentially better routes against their probability of
// succeeding.
PaymentAttemptPenalty lnwire.MilliSatoshi
// MinProbability defines the minimum success probability of the
// returned route.
MinRouteProbability float64
// PathFindingConfig defines global parameters that control the
// trade-off in path finding between fees and probabiity.
PathFindingConfig PathFindingConfig
}
// NewPaymentSession creates a new payment session backed by the latest prune