lnd+routerrpc: configure server with new estimator

We add new lnd.conf configuration options for both probability
estimators. Note that this is a breaking change for the existing apriori
parameters.
This commit is contained in:
bitromortac committed 2023-02-14 13:34:25 +01:00
1 parent 16986ee5c7
commit 58d5131e31
5 files changed
+160 -58

No files matched your search

+4
View File
@@ -46,6 +46,10 @@ type pathFinder = func(g *graphParams, r *RestrictParams,
[]*channeldb.CachedEdgePolicy, float64, error)
var (
// DefaultEstimator is the default estimator used for computing
// probabilities in pathfinding.
DefaultEstimator = AprioriEstimatorName
// DefaultAttemptCost is the default fixed virtual cost in path finding
// of a failed payment attempt. It is used to trade off potentially
// better routes against their probability of succeeding.