routing+routerrpc: rename PaymentAttemptPenalty to AttemptCost
Make field names consistent with the command line flag.
This commit is contained in:
7 files changed
+23
-26
No files matched your search
@@ -2582,8 +2582,8 @@ func testProbabilityRouting(t *testing.T, p10, p11, p20, minProbability float64,
|
||||
}
|
||||
|
||||
ctx.pathFindingConfig = PathFindingConfig{
|
||||
PaymentAttemptPenalty: lnwire.NewMSatFromSatoshis(10),
|
||||
MinProbability: minProbability,
|
||||
AttemptCost: lnwire.NewMSatFromSatoshis(10),
|
||||
MinProbability: minProbability,
|
||||
}
|
||||
|
||||
path, err := ctx.findPath(target, paymentAmt)
|
||||
@@ -2656,7 +2656,7 @@ func TestEqualCostRouteSelection(t *testing.T) {
|
||||
}
|
||||
|
||||
ctx.pathFindingConfig = PathFindingConfig{
|
||||
PaymentAttemptPenalty: lnwire.NewMSatFromSatoshis(1),
|
||||
AttemptCost: lnwire.NewMSatFromSatoshis(1),
|
||||
}
|
||||
|
||||
path, err := ctx.findPath(target, paymentAmt)
|
||||
|
||||
Reference in new issue
Block a user