`lightning-liquidity`: Introduce better error types

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

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

評価

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

調査の方向性

Work is in the lightning-liquidity crate: find every use of LDK APIError in the LSPS1/2/5 APIs (including the inline persistence path from #4008). Define a dedicated error enum with documented variants, switch those APIs to it, and keep existing behavior. Confirm by building the crate and any existing liquidity/LSPS tests; done when APIError is no longer used there and variants are documented.

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

説明

lightning-liquidity

In lightning-liqudity we historically at some point went with reusing LDK's APIError type, which was a weird choice even back then.

However, we since added a bunch of additional error cases, and at the very least since #4008 (where we had to use APIError for inline persistence errors), APIError makes no sense anymore.

We should introduce a dedicated error type with clearly documented variants for lightning-liquidity and use it throughout the LSPS1/2/5 APIs.

主要言語
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 を短くまとめたダイジェスト。