Skip to content

Commit 93f6ada

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 9861231 commit 93f6ada

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

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"
@@ -553,11 +552,7 @@ func staticAddressLoopIn(ctx context.Context, cmd *cli.Command) error {
553552
allDeposits := depositList.FilteredDeposits
554553

555554
if len(allDeposits) == 0 {
556-
errString := fmt.Sprintf("no confirmed deposits available, "+
557-
"deposits need at least %v confirmations",
558-
deposit.MinConfs)
559-
560-
return errors.New(errString)
555+
return errors.New("no deposited outputs available")
561556
}
562557

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