rpc: SendOutputs considers anchor reserve

This commit is contained in:
Slyghtning committed 2023-04-29 22:44:23 +02:00
1 parent 3c8c057ea9
commit 903b5dde89
3 files changed
+59 -6

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
package walletrpc
import "errors"
var (
// ErrZeroLabel is returned when an attempt is made to label a
// transaction with an empty label.
ErrZeroLabel = errors.New("cannot label transaction with empty " +
"label")
// ErrInsufficientReserve is returned when SendOutputs wouldn't leave
// enough funds in the wallet to cover for the anchor reserve.
ErrInsufficientReserve = errors.New("the outputs to be sent " +
"would leave insufficient reserves for anchor channels in " +
"the wallet")
)