xmr-btc-swap/swap/src/protocol/bob
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
..
behaviour.rs Peer check for incoming transfer proofs 2021-04-29 18:28:14 +10:00
cancel.rs Have --force flag only override the timelock check 2021-04-01 17:28:38 +11:00
event_loop.rs Return proper error to CLI for all expected scenarios 2021-05-07 14:52:51 +10:00
execution_setup.rs Increase timeout sending/receiving protocol messages. 2021-05-04 15:38:55 +10:00
refund.rs Ensure that constant weights do not go out of sync with code. 2021-05-07 10:24:41 +10:00
state.rs Ensure that constant weights do not go out of sync with code. 2021-05-07 10:24:41 +10:00
swap.rs Add relative and absolute max transaction fee. 2021-05-07 10:24:41 +10:00