sidecar channels: don't try to clean up previous batch state if in provider mode

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go
領域
backend

調査の方向性

PrepareMsg 周辺のバッチロールバック処理と、provider モードの sidecar チャネルパスを追跡し、新しい PrepareMsg の後に funding-shim のクリーンアップが試行される理由に焦点を当てます。provider モードでロールバックを再現し、ノードがチャネルのオープンに関与していなかった場合に cleanup-error ログが出力されないことを確認します。

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

説明

If a node is providing sidecar channels, it won't be involved in the actual channel opening process.
So in case of a batch rollback (new PrepareMsg without a finalize of the previous batch), there is nothing to clean up.
In fact, the cleanup attempt creates log entries with errors:

2021-12-14 18:15:28.432 [INF] RPCS: Received PrepareMsg for batch=020xxxx, num_orders=1
2021-12-14 18:15:28.439 [WRN] FNDG: Unable to unregister funding shim (pendingChanID=2dxxxx) for order=8ff7xxx
2021-12-14 18:15:28.444 [DBG] FNDG: Cleaning up incomplete/replaced pending channel in lnd was unsuccessful for order=8ff7xxxx (channel_point=d3c5faxxxx:0), assuming timeout when funding: rpc error: code = Unknown desc = unable to find closed channel summary
主要言語
Go
スター
256
フォーク
53
平均マージ
20時間 22分
マージ済み PR(30日)
5

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

lightninglabs/pool のほかの issue

lightninglabs/pool の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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