Closed dimalinux closed 1 year ago
Patch coverage: 81.04
% and project coverage change: +0.02
:tada:
Comparison is base (
53a5c97
) 58.11% compared to head (0917f24
) 58.14%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
This PR adds a new test case,
TestXMRNotLockedAndETHRefundedAfterAliceRestarts
, that was initially broken before the rest of the PR. The taker's status subscribe channel was not getting the refund status change after restart.I decided to remove the status channel from both the
OfferExtra
andswap.Info
struct types. Both of those types are designed for serialization (and deserialization on restart), but status channels are ephemeral to a single run ofswapd
. Instead of trying to keep the status channels synchronized across two different data structures, I made management of the channel part ofswap.Manager
.