mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
build: bump tapd
This commit is contained in:
parent
dd85a618ed
commit
408e6d75d0
3 changed files with 23 additions and 13 deletions
12
loopout.go
12
loopout.go
|
|
@ -841,7 +841,17 @@ func (s *loopOutSwap) payInvoiceAsync(ctx context.Context,
|
|||
return nil, fmt.Errorf("rfq id has wrong length: %v", n)
|
||||
}
|
||||
|
||||
htlc := rfqmsg.NewHtlc(nil, fn.Some(rfq))
|
||||
// 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}),
|
||||
)
|
||||
htlcMapRecords, err := tlv.RecordsToMap(htlc.Records())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue