lightning 7.0.7 → 7.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Versions
2
2
 
3
- ## 7.0.7
3
+ ## 7.0.8
4
4
 
5
5
  - `getChainAddresses`: Add method to get the list of chain addresses
6
6
 
@@ -95,7 +95,9 @@ service Router {
95
95
 
96
96
  /*
97
97
  Deprecated. QueryProbability returns the current success probability
98
- estimate for a given node pair and amount.
98
+ estimate for a given node pair and amount. The call returns a zero success
99
+ probability if no channel is available or if the amount violates min/max
100
+ HTLC constraints.
99
101
  */
100
102
  rpc QueryProbability (QueryProbabilityRequest)
101
103
  returns (QueryProbabilityResponse);
@@ -465,6 +467,93 @@ message SetMissionControlConfigResponse {
465
467
  }
466
468
 
467
469
  message MissionControlConfig {
470
+ /*
471
+ Deprecated, use AprioriParameters. The amount of time mission control will
472
+ take to restore a penalized node or channel back to 50% success probability,
473
+ expressed in seconds. Setting this value to a higher value will penalize
474
+ failures for longer, making mission control less likely to route through
475
+ nodes and channels that we have previously recorded failures for.
476
+ */
477
+ uint64 half_life_seconds = 1 [deprecated = true];
478
+
479
+ /*
480
+ Deprecated, use AprioriParameters. The probability of success mission
481
+ control should assign to hop in a route where it has no other information
482
+ available. Higher values will make mission control more willing to try hops
483
+ that we have no information about, lower values will discourage trying these
484
+ hops.
485
+ */
486
+ float hop_probability = 2 [deprecated = true];
487
+
488
+ /*
489
+ Deprecated, use AprioriParameters. The importance that mission control
490
+ should place on historical results, expressed as a value in [0;1]. Setting
491
+ this value to 1 will ignore all historical payments and just use the hop
492
+ probability to assess the probability of success for each hop. A zero value
493
+ ignores hop probability completely and relies entirely on historical
494
+ results, unless none are available.
495
+ */
496
+ float weight = 3 [deprecated = true];
497
+
498
+ /*
499
+ The maximum number of payment results that mission control will store.
500
+ */
501
+ uint32 maximum_payment_results = 4;
502
+
503
+ /*
504
+ The minimum time that must have passed since the previously recorded failure
505
+ before we raise the failure amount.
506
+ */
507
+ uint64 minimum_failure_relax_interval = 5;
508
+
509
+ enum ProbabilityModel {
510
+ APRIORI = 0;
511
+ BIMODAL = 1;
512
+ }
513
+
514
+ /*
515
+ ProbabilityModel defines which probability estimator should be used in
516
+ pathfinding.
517
+ */
518
+ ProbabilityModel Model = 6;
519
+
520
+ /*
521
+ EstimatorConfig is populated dependent on the estimator type.
522
+ */
523
+ oneof EstimatorConfig {
524
+ AprioriParameters apriori = 7;
525
+ BimodalParameters bimodal = 8;
526
+ }
527
+ }
528
+
529
+ message BimodalParameters {
530
+ /*
531
+ NodeWeight defines how strongly other previous forwardings on channels of a
532
+ router should be taken into account when computing a channel's probability
533
+ to route. The allowed values are in the range [0, 1], where a value of 0
534
+ means that only direct information about a channel is taken into account.
535
+ */
536
+ double node_weight = 1;
537
+
538
+ /*
539
+ ScaleMsat describes the scale over which channels statistically have some
540
+ liquidity left. The value determines how quickly the bimodal distribution
541
+ drops off from the edges of a channel. A larger value (compared to typical
542
+ channel capacities) means that the drop off is slow and that channel
543
+ balances are distributed more uniformly. A small value leads to the
544
+ assumption of very unbalanced channels.
545
+ */
546
+ uint64 scale_msat = 2;
547
+
548
+ /*
549
+ DecayTime describes the information decay of knowledge about previous
550
+ successes and failures in channels. The smaller the decay time, the quicker
551
+ we forget about past forwardings.
552
+ */
553
+ uint64 decay_time = 3;
554
+ }
555
+
556
+ message AprioriParameters {
468
557
  /*
469
558
  The amount of time mission control will take to restore a penalized node
470
559
  or channel back to 50% success probability, expressed in seconds. Setting
@@ -480,7 +569,7 @@ message MissionControlConfig {
480
569
  control more willing to try hops that we have no information about, lower
481
570
  values will discourage trying these hops.
482
571
  */
483
- float hop_probability = 2;
572
+ double hop_probability = 2;
484
573
 
485
574
  /*
486
575
  The importance that mission control should place on historical results,
@@ -490,18 +579,7 @@ message MissionControlConfig {
490
579
  completely and relies entirely on historical results, unless none are
491
580
  available.
492
581
  */
493
- float weight = 3;
494
-
495
- /*
496
- The maximum number of payment results that mission control will store.
497
- */
498
- uint32 maximum_payment_results = 4;
499
-
500
- /*
501
- The minimum time that must have passed since the previously recorded failure
502
- before we raise the failure amount.
503
- */
504
- uint64 minimum_failure_relax_interval = 5;
582
+ double weight = 3;
505
583
  }
506
584
 
507
585
  message QueryProbabilityRequest {
package/package.json CHANGED
@@ -59,5 +59,5 @@
59
59
  "directory": "test/typescript"
60
60
  },
61
61
  "types": "index.d.ts",
62
- "version": "7.0.7"
62
+ "version": "7.0.8"
63
63
  }