routing+routerrpc: rename PaymentAttemptPenalty to AttemptCost

Make field names consistent with the command line flag.
This commit is contained in:
Joost Jager
2020-09-08 13:07:35 +02:00
parent 751b02361e
commit 17a6175e8b
7 changed files with 23 additions and 26 deletions

View File

@@ -29,9 +29,9 @@ type RoutingConfig struct {
// channel is back at 50% probability.
PenaltyHalfLife time.Duration `long:"penaltyhalflife" description:"Defines the duration after which a penalized node or channel is back at 50% probability"`
// AttemptCost 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.
// AttemptCost is the 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.
AttemptCost btcutil.Amount `long:"attemptcost" description:"The (virtual) cost in sats of a failed payment attempt"`
// MaxMcHistory defines the maximum number of payment results that