mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
go.mod: pin fixed lndclient addinvoice hints
Include https://github.com/lightninglabs/lndclient/pull/268 Preserve AddInvoiceData fields across invoice wrappers
This commit is contained in:
parent
2f5e821049
commit
118c73a0bd
3 changed files with 11 additions and 5 deletions
2
go.mod
2
go.mod
|
|
@ -20,7 +20,7 @@ require (
|
|||
github.com/jessevdk/go-flags v1.4.0
|
||||
github.com/lib/pq v1.10.9
|
||||
github.com/lightninglabs/aperture v0.3.13-beta
|
||||
github.com/lightninglabs/lndclient v0.20.0-7
|
||||
github.com/lightninglabs/lndclient v0.20.0-8
|
||||
github.com/lightninglabs/loop/looprpc v1.0.7
|
||||
github.com/lightninglabs/loop/swapserverrpc v1.0.14
|
||||
github.com/lightninglabs/taproot-assets v0.7.0
|
||||
|
|
|
|||
4
go.sum
4
go.sum
|
|
@ -1116,8 +1116,8 @@ github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf h1:HZKvJUHlcXI
|
|||
github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf/go.mod h1:vxmQPeIQxPf6Jf9rM8R+B4rKBqLA2AjttNxkFBL2Plk=
|
||||
github.com/lightninglabs/lightning-node-connect/hashmailrpc v1.0.4-0.20250610182311-2f1d46ef18b7 h1:373o5lNr1udAdhcf5+zq/0dYpRtkvYLl8Lk6wG7I0DY=
|
||||
github.com/lightninglabs/lightning-node-connect/hashmailrpc v1.0.4-0.20250610182311-2f1d46ef18b7/go.mod h1:bDnEKRN1u13NFBuy/C+bFLhxA5bfd3clT25y76QY0AM=
|
||||
github.com/lightninglabs/lndclient v0.20.0-7 h1:EA5QOjT9IJmcgybIuR4pmIXkj2GMpa/2PxOf6j4reWU=
|
||||
github.com/lightninglabs/lndclient v0.20.0-7/go.mod h1:gBtIFPGmC2xIspGIv/G5+HiPSGJsFD8uIow7Oke1HFI=
|
||||
github.com/lightninglabs/lndclient v0.20.0-8 h1:xymEVZjHcFoszZsJy3jyPNErY+YBCkxLDRV5ohynry4=
|
||||
github.com/lightninglabs/lndclient v0.20.0-8/go.mod h1:AQTlloQUUK6OW6j9YRiA/7Sy09PXlyVxsvPo5bW0L6A=
|
||||
github.com/lightninglabs/migrate/v4 v4.18.2-9023d66a-fork-pr-2 h1:eFjp1dIB2BhhQp/THKrjLdlYuPugO9UU4kDqu91OX/Q=
|
||||
github.com/lightninglabs/migrate/v4 v4.18.2-9023d66a-fork-pr-2/go.mod h1:99BKpIi6ruaaXRM1A77eqZ+FWPQ3cfRa+ZVy5bmWMaY=
|
||||
github.com/lightninglabs/neutrino v0.16.1 h1:5Kz4ToxncEVkpKC6fwUjXKtFKJhuxlG3sBB3MdJTJjs=
|
||||
|
|
|
|||
|
|
@ -105,11 +105,17 @@ func (h *mockLightningClient) AddInvoice(ctx context.Context,
|
|||
// Create and encode the payment request as a bech32 (zpay32) string.
|
||||
creationDate := time.Now()
|
||||
|
||||
payReq, err := zpay32.NewInvoice(
|
||||
h.lnd.ChainParams, hash, creationDate,
|
||||
options := []func(*zpay32.Invoice){
|
||||
zpay32.Description(in.Memo),
|
||||
zpay32.CLTVExpiry(in.CltvExpiry),
|
||||
zpay32.Amount(in.Value),
|
||||
}
|
||||
for _, routeHint := range in.RouteHints {
|
||||
options = append(options, zpay32.RouteHint(routeHint))
|
||||
}
|
||||
|
||||
payReq, err := zpay32.NewInvoice(
|
||||
h.lnd.ChainParams, hash, creationDate, options...,
|
||||
)
|
||||
if err != nil {
|
||||
return lntypes.Hash{}, "", err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue