[client] Improve coinselection & verbosity (#104)

* cli logs + handle dust amount

* add wallet initialized

* Update client/common.go

Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com>
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com>

---------

Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com>
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com>
This commit is contained in:
Louis Singer
2024-02-12 18:02:09 +01:00
committed by GitHub
parent 7778b6b5a1
commit 9944a3cc48
3 changed files with 30 additions and 10 deletions

View File

@@ -86,8 +86,8 @@ func sendAction(ctx *cli.Context) error {
return fmt.Errorf("invalid receiver address '%s': must be associated with the connected service provider", receiver.To)
}
if receiver.Amount <= 0 {
return fmt.Errorf("invalid amount: %d", receiver.Amount)
if receiver.Amount < DUST {
return fmt.Errorf("invalid amount (%d), must be greater than dust %d", receiver.Amount, DUST)
}
receiversOutput = append(receiversOutput, &arkv1.Output{