Commit Graph

5 Commits (478f242f918eaf292b1292099ec5bcd045573433)

Author SHA1 Message Date
carla 0e72c2bf92
loopin: handle EOF case for SubscribeSingleInvoice
From lnd 0.13.0, the SubscribeSingleInvoice rpc will return an EOF
once it has served a final state to the stream. This is handled in
our lndclient wrapper by closing the channels that we send updates/
errors on. When we are exclusively consuming updates from these
streams, we don't need to handle this case because we will receive
our final update and exit. However, in the case where we continue
to listen on the update channels after consuming the final update,
we need to handle this EOF/closed channels case. This is done by
setting the channels to nil after they're closed so that we no
longer select on them but can continue waiting for our other cases
to complete.

We have similar handling in loopout's waitForHtlcSpendConfirmed.
3 years ago
carla cae72b5848
loopin/test: move invoice updates to loopin test context 3 years ago
carla 16111352a8
multi: add cancel swap function to execute config 3 years ago
Joost Jager c8666caf20
loopin: mpp pre-swap probe 4 years ago
Joost Jager 3e960b8b54
multi: loop in swap 5 years ago