File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 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,
12051205 pubkey := * in .Contract .LastHop
12061206
12071207 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+
12101216 traffic .ongoingLoopIn [pubkey ] = true
12111217
12121218 // If a swap failed with an on-chain timeout, the server could
You can’t perform that action at this time.
0 commit comments