lnwallet: return ErrNoOutputs in case no outputs are sent to

This commit is contained in:
Johan T. Halseth committed 2019-03-15 23:47:15 +01:00
1 parent a5becc2063
commit 306c0c8aab
2 files changed
+11

No files matched your search

+4
View File
@@ -49,6 +49,10 @@ var (
ErrNotMine = errors.New("the passed output doesn't belong to the wallet")
)
// ErrNoOutputs is returned if we try to create a transaction with no outputs
// or send coins to a set of outputs that is empty.
var ErrNoOutputs = errors.New("no outputs")
// Utxo is an unspent output denoted by its outpoint, and output value of the
// original output.
type Utxo struct {