mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
Merge pull request #1028 from starius/downgrade-deps
go.mod: downgrade deps for litd release
This commit is contained in:
commit
b11c959bc8
15 changed files with 36 additions and 317 deletions
16
loopout.go
16
loopout.go
|
|
@ -25,9 +25,9 @@ import (
|
|||
"github.com/lightninglabs/taproot-assets/fn"
|
||||
"github.com/lightninglabs/taproot-assets/rfqmsg"
|
||||
"github.com/lightningnetwork/lnd/chainntnfs"
|
||||
"github.com/lightningnetwork/lnd/channeldb"
|
||||
"github.com/lightningnetwork/lnd/lnrpc"
|
||||
"github.com/lightningnetwork/lnd/lntypes"
|
||||
paymentsdb "github.com/lightningnetwork/lnd/payments/db"
|
||||
"github.com/lightningnetwork/lnd/tlv"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
|
@ -843,17 +843,7 @@ func (s *loopOutSwap) payInvoiceAsync(ctx context.Context,
|
|||
return nil, fmt.Errorf("rfq id has wrong length: %v", n)
|
||||
}
|
||||
|
||||
// In order to still be compatible with the old wire format for
|
||||
// asset HTLCs, we populate both fields.
|
||||
//
|
||||
// Older versions of tapd will ignore the new field and only use
|
||||
// the old one.
|
||||
//
|
||||
// Newer versions will ignore the old field and only use the new
|
||||
// field.
|
||||
htlc := rfqmsg.NewHtlc(
|
||||
nil, fn.Some(rfq), fn.Some([]rfqmsg.ID{rfq}),
|
||||
)
|
||||
htlc := rfqmsg.NewHtlc(nil, fn.Some(rfq))
|
||||
htlcMapRecords, err := tlv.RecordsToMap(htlc.Records())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
@ -970,7 +960,7 @@ func (s *loopOutSwap) awaitSendPayment(ctx context.Context, hash lntypes.Hash,
|
|||
// payment error from TrackPayment is no longer expected
|
||||
// here.
|
||||
case err := <-payErrChan:
|
||||
if err != paymentsdb.ErrAlreadyPaid {
|
||||
if err != channeldb.ErrAlreadyPaid {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue