File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1205,8 +1205,14 @@ func (m *Manager) currentSwapTraffic(loopOut []*loopdb.LoopOut,
1205
1205
pubkey := * in .Contract .LastHop
1206
1206
1207
1207
switch {
1208
- // Include any pending swaps in our ongoing set of swaps.
1209
- case in .State ().State .Type () == loopdb .StateTypePending :
1208
+ // Include any pending swaps in our ongoing set of swaps. Swaps
1209
+ // that reached InvoiceSettled are not considered ongoing since
1210
+ // from the client's perspective the swap is complete. This
1211
+ // consideration allows the client to dispatch the next autoloop
1212
+ // in once an invoice for a previous swap is settled.
1213
+ case in .State ().State .Type () == loopdb .StateTypePending &&
1214
+ in .State ().State != loopdb .StateInvoiceSettled :
1215
+
1210
1216
traffic .ongoingLoopIn [pubkey ] = true
1211
1217
1212
1218
// If a swap failed with an on-chain timeout, the server could
You can’t perform that action at this time.
0 commit comments