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

Aperta
#173 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Inizia tracciando il flusso di invio di ask-order dalla CLI, in particolare la validazione e la richiesta di conferma. Esamina come vengono attualmente prodotti gli errori di saldo insufficiente e di wumbo-channel. Il lavoro è completo quando i controlli pertinenti vengono eseguiti prima della conferma e i messaggi spiegano il saldo, le commissioni, l'importo massimo utilizzabile o la dimensione del canale accettata quando disponibile.

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

Descrizione

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).

Lingua principale
Go
Stelle
256
Fork
53
Merge medio
20h 22m
PR unite (30g)
5

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

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 lightninglabs/pool

Tutte le issue di lightninglabs/pool

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.