Expose the amount held on our end of the channel

Abierto
#4,241 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

  • #4267 de @TheBlueMatt — cerrado sin fusionar

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
32/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
rust

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
1.4k
Forks
482
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de lightningdevkit/rust-lightning

Todos los issues de lightningdevkit/rust-lightning

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.