Expose the amount held on our end of the channel

オープン
#4,241 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

  • #4267 @TheBlueMatt による — マージされずにクローズ

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
32/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Rust
スター
1.4k
フォーク
482
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

lightningdevkit/rust-lightning のほかの issue

lightningdevkit/rust-lightning の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。