diff --git a/Makefile b/Makefile index c5fc0e5..20725c5 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -PKG := github.com/lightninglabs/lndclient +PKG := github.com/thomasbarrett/lndclient LINT_PKG := github.com/golangci/golangci-lint/cmd/golangci-lint diff --git a/go.mod b/go.mod index b0c4a49..ff98c40 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/lightninglabs/lndclient +module github.com/thomasbarrett/lndclient require ( github.com/btcsuite/btcd v0.22.0-beta.0.20211005184431-e3449998be39 diff --git a/lightning_client.go b/lightning_client.go index 50792bb..80bb018 100644 --- a/lightning_client.go +++ b/lightning_client.go @@ -1390,6 +1390,7 @@ func (s *lightningClient) AddInvoice(ctx context.Context, Expiry: in.Expiry, CltvExpiry: in.CltvExpiry, Private: true, + IsAmp: in.Amp, } if in.Preimage != nil { diff --git a/macaroon_recipes_test.go b/macaroon_recipes_test.go index 95e033d..c457f3e 100644 --- a/macaroon_recipes_test.go +++ b/macaroon_recipes_test.go @@ -6,8 +6,8 @@ import ( "io/ioutil" "testing" - "github.com/lightninglabs/lndclient" "github.com/stretchr/testify/require" + "github.com/thomasbarrett/lndclient" ) var ( diff --git a/router_client.go b/router_client.go index f5dda97..4540655 100644 --- a/router_client.go +++ b/router_client.go @@ -379,6 +379,7 @@ func (r *routerClient) SendPayment(ctx context.Context, MaxParts: request.MaxParts, OutgoingChanIds: request.OutgoingChanIds, AllowSelfPayment: request.AllowSelfPayment, + Amt: int64(request.Amount), } if request.MaxCltv != nil { rpcReq.CltvLimit = *request.MaxCltv @@ -415,7 +416,6 @@ func (r *routerClient) SendPayment(ctx context.Context, // payment parameters. if request.Invoice == "" { rpcReq.Dest = request.Target[:] - rpcReq.Amt = int64(request.Amount) rpcReq.PaymentHash = request.PaymentHash[:] rpcReq.FinalCltvDelta = int32(request.FinalCLTVDelta)