routerrpc: embed routing config

This commit is contained in:
Joost Jager committed 2019-07-29 13:42:59 +02:00
1 parent eb4e65e54f
commit 3dc83d1b6b
4 files changed
+33 -49

No files matched your search

+5 -3
View File
@@ -662,12 +662,14 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB,
srvrLog.Debugf("Instantiating payment session source with config: "+
"PaymentAttemptPenalty=%v, MinRouteProbability=%v",
int64(routingConfig.PaymentAttemptPenalty.ToSatoshis()),
int64(routingConfig.AttemptCost),
routingConfig.MinRouteProbability)
pathFindingConfig := routing.PathFindingConfig{
PaymentAttemptPenalty: routingConfig.PaymentAttemptPenalty,
MinProbability: routingConfig.MinRouteProbability,
PaymentAttemptPenalty: lnwire.NewMSatFromSatoshis(
routingConfig.AttemptCost,
),
MinProbability: routingConfig.MinRouteProbability,
}
paymentSessionSource := &routing.SessionSource{