xmr-btc-swap/swap
Thomas Eizinger b417950f99
Improve error reporting of failed protocols
Instead of forwarding every error, we deliberately ignore certain
variants that are not worth being printed to the log. In particular,
this concerns "UnsupportedProtocols" and "ResponseOmission".

To make this less verbose we introduce a macro for mapping a
`RequestResponseEvent` to `{alice,bob}::OutEvent`. We use a macro
because those `OutEvent`s are different types and the only other
way of abstracting over them would be to introduce traits that we
implement on both of them.

To make the macro easier to use, we move all the `From` implementations
that convert between the protocol and the more high-level behaviour
into the actual protocol module.
2021-04-14 10:34:06 +10:00
..
src Improve error reporting of failed protocols 2021-04-14 10:34:06 +10:00
tests Introduce a redial::Behaviour 2021-04-14 10:07:14 +10:00
Cargo.toml Log at debug level to file 2021-04-08 16:10:35 +10:00