mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 17:52:25 +01:00
fixup! routing: add first hop TLVs to ExtraData
This commit is contained in:
parent
cf80b7cd9c
commit
7c69966cf3
@ -680,10 +680,10 @@ func (p *paymentLifecycle) sendAttempt(
|
||||
|
||||
// If we had any first hop TLVs, then we'll encode that here now.
|
||||
firstHopTLVs := tlv.MapToRecords(p.firstHopTLVs)
|
||||
wireTLVs := fn.Map(func(r tlv.Record) tlv.RecordProducer {
|
||||
wireRecords := fn.Map(func(r tlv.Record) tlv.RecordProducer {
|
||||
return &r
|
||||
}, firstHopTLVs)
|
||||
if err := htlcAdd.ExtraData.PackRecords(wireTLVs...); err != nil {
|
||||
if err := htlcAdd.ExtraData.PackRecords(wireRecords...); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user