swap: add lasthop, outgoingchanids to swapinfo

This commit is contained in:
sputn1ck 2022-05-27 11:14:16 +02:00
parent e98d813885
commit efb6f75d60
No known key found for this signature in database
GPG key ID: 671103D881A5F0E4
5 changed files with 50 additions and 3 deletions

View file

@ -353,6 +353,15 @@ type SwapInfo struct {
// ExternalHtlc is set to true for external loop-in swaps.
ExternalHtlc bool
// LastHop optionally specifies the last hop to use for the loop in
// payment. On a loop out this field is nil.
LastHop *route.Vertex
// OutgoingChanSet optionally specifies the short channel ids of the
// channels that may be used to loop out. On a loop in this field
// is nil.
OutgoingChanSet loopdb.ChannelSet
}
// LastUpdate returns the last update time of the swap