Be willing to pick smaller paths at the end of pathfinding if there's not much left to find

Ouverte
#3,901 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
32/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
rust
Domaine
blockchain, payments

Piste de recherche

The issue is about MPP path selection: when leftover to send is below amount/max_path_count, still accept a smaller finishing path instead of stalling. Search the pathfinding code for max_path_count and the per-path minimum, then relax that check for the remaining amount. No files or tests are named in the issue; locate those entry points in the Lightning pathfinder and add or extend coverage for the 2.6M-available / 2.5M-send example. Done when such a send completes instead of refusing the last hop.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

If we have only marginally more available to send than we're trying to send, and pick a few MPP paths which total just less than we're trying to send, we might find ourselves stuck as we won't be willing to pick a small path to finish out the rest if what we need is < 1/max_path_count (default 10).

eg if we have 2.6M sats available to send, and are trying to send 2.5, if we get unlucky and the paths we pick total to 2.4, we will refuse to pick another path because our first hop channel doesn't have enough to meet our path minimum (2.5M/10 = 250k) but we should really be willing to relax that minimum because we only need another 100k sats left.

Langage dominant
Rust
Étoiles
1.4k
Forks
482
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de lightningdevkit/rust-lightning

Toutes les issues de lightningdevkit/rust-lightning

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.