File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -260,15 +260,22 @@ type SwapInfoKit struct {
260
260
type SwapInfo struct {
261
261
loopdb.SwapStateData
262
262
263
+ loopdb.SwapContract
264
+
265
+ // LastUpdateTime is the time of the last state change.
263
266
LastUpdate time.Time
264
267
268
+ // SwapHash stores the swap preimage hash.
265
269
SwapHash lntypes.Hash
266
270
271
+ // SwapType describes whether this is a loop in or loop out swap.
267
272
SwapType swap.Type
268
273
269
- loopdb.SwapContract
270
-
274
+ // HtlcAddress holds the HTLC address of the swap.
271
275
HtlcAddress btcutil.Address
276
+
277
+ // ExternalHtlc is set to true for external loop-in swaps.
278
+ ExternalHtlc bool
272
279
}
273
280
274
281
// LastUpdate returns the last update time of the swap
Original file line number Diff line number Diff line change @@ -244,6 +244,7 @@ func (s *loopInSwap) sendUpdate(ctx context.Context) error {
244
244
s .log .Infof ("Loop in swap state: %v" , info .State )
245
245
246
246
info .HtlcAddress = s .htlc .Address
247
+ info .ExternalHtlc = s .ExternalHtlc
247
248
248
249
select {
249
250
case s .statusChan <- * info :
You can’t perform that action at this time.
0 commit comments