Skip to content

Commit d2a36fd

Browse files
committed
staticaddr: return error if address already exists
1 parent 38d7401 commit d2a36fd

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

cmd/loop/staticaddr.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ func newStaticAddress(ctx *cli.Context) error {
7575
return err
7676
}
7777

78-
fmt.Printf("Received a new static loop-in address from the server: "+
79-
"%s\n", resp.Address)
78+
fmt.Printf("static loop-in address: %s\n", resp.Address)
8079

8180
return nil
8281
}

staticaddr/address/interface.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,12 @@ package address
22

33
import (
44
"context"
5-
"fmt"
65

76
"github.com/btcsuite/btcd/btcec/v2"
87
"github.com/lightninglabs/loop/staticaddr/version"
98
"github.com/lightningnetwork/lnd/keychain"
109
)
1110

12-
var (
13-
ErrAddressAlreadyExists = fmt.Errorf("address already exists")
14-
)
15-
1611
// Store is the database interface that is used to store and retrieve
1712
// static addresses.
1813
type Store interface {

0 commit comments

Comments
 (0)