Merge pull request #1028 from starius/downgrade-deps

go.mod: downgrade deps for litd release
This commit is contained in:
Boris Nagaev 2025-10-31 11:12:36 -03:00 committed by GitHub
commit b11c959bc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 36 additions and 317 deletions

View file

@ -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
}