Expose the amount held on our end of the channel

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

Ninguém assumiu esta issue ainda.

  • #4267 de @TheBlueMatt — fechado sem integrar

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 request is to expose the amount held on our side of a Lightning channel, not only ChannelDetails::outbound_capacity_msat (which subtracts the reserve and fails for balances below reserve). Start from ChannelDetails and how outbound capacity and reserve are computed. Linked PR 4267 was closed unmerged; treat it as prior art, not a finished solution. Done when a public field or method reports that held amount even when it is unenforceable or unspendable.

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

Descrição

To properly display the amount the user received, I need to know the amount held on our end of the channel, even if it is not enforceable on-chain or not spendable on Lightning.

ChannelDetails::outbound_capacity_msat is not enough because it takes the channel reserve into account. But adding the reserve back does not work for balances below the reserve.

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.