xmr-btc-swap/swap/src/network
Daniel Karzel ea76ae5821
Return proper error to CLI for all expected scenarios
When a CLI requests a spot price have some errors that are expected, where we can provide a proper error message for the CLI:
- Balance of ASB too low
- Buy amount sent by CLI exceeds maximum buy amount accepted by ASB
- ASB is running in maintenance mode and does not accept incoming swap requests

All of these errors returns a proper error to the CLI and prints a warning in the ASB logs.
Any other unexpected error will result in closing the channel with the CLI and printing an error in the ASB logs.
2021-05-07 14:52:51 +10:00
..
cbor_request_response.rs Rename module to better represent what it contains 2021-03-24 11:39:40 +11:00
encrypted_signature.rs Improve error reporting of failed protocols 2021-04-14 10:34:06 +10:00
impl_from_rr_event.rs Improve error reporting of failed protocols 2021-04-14 10:34:06 +10:00
json_pull_codec.rs Json codec for quote protocol 2021-04-16 16:00:45 +10:00
quote.rs Json codec for quote protocol 2021-04-16 16:00:45 +10:00
redial.rs Improve error reporting of failed protocols 2021-04-14 10:34:06 +10:00
spot_price.rs Return proper error to CLI for all expected scenarios 2021-05-07 14:52:51 +10:00
swarm.rs Add support for swapping through Tor. 2021-04-27 14:51:41 +10:00
tor_transport.rs Simplify to_address_string by implying more context on the structure. 2021-04-28 16:21:31 +10:00
transfer_proof.rs Peer check for incoming transfer proofs 2021-04-29 18:28:14 +10:00
transport.rs Add support for swapping through Tor. 2021-04-27 14:51:41 +10:00