Skip to content

Commit

Permalink
move lnd client code to github.com/lnproxy/lnc
Browse files Browse the repository at this point in the history
  • Loading branch information
lnproxy committed Jun 24, 2023
1 parent 8b0f7d1 commit bc6ace3
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 385 deletions.
5 changes: 3 additions & 2 deletions cmd/http-relay/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"strconv"
"strings"

"github.com/lnproxy/lnc"
"github.com/lnproxy/lnproxy"
)

Expand All @@ -38,7 +39,7 @@ var (
PaymentTimePreference: 0.9,
}

lnd *lnproxy.Lnd
lnd *lnc.Lnd

validPath = regexp.MustCompile("^/api/(lnbc.*1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]+)")
)
Expand Down Expand Up @@ -180,7 +181,7 @@ func main() {
},
}

lnd = &lnproxy.Lnd{
lnd = &lnc.Lnd{
Host: lndHost,
Client: lndClient,
TlsConfig: lndTlsConfig,
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ module github.com/lnproxy/lnproxy

go 1.20

require golang.org/x/net v0.9.0
require github.com/lnproxy/lnc v0.0.0-20230624032429-0bf0de5096b5

require golang.org/x/net v0.11.0 // indirect
6 changes: 4 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM=
golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns=
github.com/lnproxy/lnc v0.0.0-20230624032429-0bf0de5096b5 h1:sFZQOgPMCWhIwMaXA/ePAeX+mNSi5Jp/w8a50rAfK4U=
github.com/lnproxy/lnc v0.0.0-20230624032429-0bf0de5096b5/go.mod h1:iR/TmFmHkd5E8EhrqjUbkFdrr9mawoSFyntciGRTVWM=
golang.org/x/net v0.11.0 h1:Gi2tvZIJyBtO9SDr1q9h5hEQCp/4L2RQ+ar0qjx2oNU=
golang.org/x/net v0.11.0/go.mod h1:2L/ixqYpgIVXmeoSA/4Lu7BzTG4KIyPIryS4IsOd1oQ=
46 changes: 0 additions & 46 deletions ln.go

This file was deleted.

Loading

0 comments on commit bc6ace3

Please sign in to comment.