Skip to content

Commit 44d976e

Browse files
committed
cmd/loop: simplify no-deposits error and remove deposit.MinConfs
Update the loop-in CLI error message to no longer reference a minimum confirmation count now that mempool deposits are surfaced immediately. Remove the unused MinConfs constant from the deposit package.
1 parent 1f472ae commit 44d976e

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

cmd/loop/staticaddr.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77

88
"github.com/lightninglabs/loop/labels"
99
"github.com/lightninglabs/loop/looprpc"
10-
"github.com/lightninglabs/loop/staticaddr/deposit"
1110
"github.com/lightninglabs/loop/staticaddr/loopin"
1211
"github.com/lightninglabs/loop/swapserverrpc"
1312
lndcommands "github.com/lightningnetwork/lnd/cmd/commands"
@@ -537,11 +536,7 @@ func staticAddressLoopIn(ctx context.Context, cmd *cli.Command) error {
537536
allDeposits := depositList.FilteredDeposits
538537

539538
if len(allDeposits) == 0 {
540-
errString := fmt.Sprintf("no confirmed deposits available, "+
541-
"deposits need at least %v confirmations",
542-
deposit.MinConfs)
543-
544-
return errors.New(errString)
539+
return errors.New("no deposited outputs available")
545540
}
546541

547542
var depositOutpoints []string

staticaddr/deposit/manager.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ import (
1818
)
1919

2020
const (
21-
// MinConfs is the minimum number of confirmations we require for a
22-
// deposit to be considered available for loop-ins, coop-spends and
23-
// timeouts.
24-
MinConfs = 6
25-
2621
// MaxConfs is unset since we don't require a max number of
2722
// confirmations for deposits.
2823
MaxConfs = 0

0 commit comments

Comments
 (0)