Expose the amount held on our end of the channel

Aperta
#4,241 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

  • #4267 di @TheBlueMatt — chiusa senza merge

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
32/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rust

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
1.4k
Fork
482
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lightningdevkit/rust-lightning

Tutte le issue di lightningdevkit/rust-lightning

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.