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

Aberta
#3,901 1 comentário 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
32/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
rust
Domínio
blockchain, payments

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Rust
Estrelas
1.4k
Forks
482
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de lightningdevkit/rust-lightning

Todas as issues de lightningdevkit/rust-lightning

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.