CLI usability: give more meaningful error messages wrt. balance and amounts

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

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

評価

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

調査の方向性

まず、CLI での ask-order 送信フロー、特にバリデーションと確認プロンプトを追跡します。残高不足エラーと wumbo-channel エラーが現在どのように生成されているかを確認します。関連するチェックが確認の前に行われ、利用可能な場合には、メッセージで残高、手数料、利用可能な最大額、または受け入れ可能なチャネルサイズが説明されれば完了です。

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

説明

When I use the CLI to submit an ask order, several things may go wrong:

  1. The amount is not divisible by 100,000 satoshi
  2. I do not have enough satoshis available to fund the order
  3. My lnd node does not accept channels of the configured size

See #172 for a discussion of 1).

In case 2) I get a message "insufficient account balance" after I confirmed the order. This is OK, but from a usability perspective I'd like to see this message before I confirm the order. Furthermore, the message could/should indicate my current balance and, if possible, the maximum amount I might use for the order (taking fees into account). The goal should be to make it as easy and simple as possible for the user to submit a correct order.

In case 3) I get "order of 1 BTC is wumbo sized, but lnd node isn't signalling wumbo", which is OK if you know what "wumbo" means (😕). As above, I'd like to see this message before I confirm the order. Then, a more helpful message would be nice. What is the maximum amount my lnd node accepts? This amount should be shown, possibly rounded to a valid "unit" size, and with fees and available balance taken into account (as above).

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