xmr-btc-swap/swap/tests/harness
Daniel Karzel 52f648e1de
Alice's spot price logic into dedicated behaviour
Move Alice's spot price logic into a dedicated network behaviour that handles all the logic.
The new behaviour encapsulates the complete state necessary for spot price request decision making.
The network behaviour cannot handle asynchronous calls, thus the balance is managed inside the spot price and has to updated regularly from the outside to ensure the spot price balance check has up to date data.
At the moment the balance is updated upon an incoming quote requests.

Code that is relevant for both ASB and CLI remains in the `network::spot_price` module (e.g. `network::spot_price::Error`).
2021-05-07 15:00:29 +10:00
..
bitcoind.rs Dynamically chose fee for TxCancel. 2021-05-07 10:24:41 +10:00
electrs.rs Rename testutils to harness 2021-03-30 12:59:34 +11:00
mod.rs Alice's spot price logic into dedicated behaviour 2021-05-07 15:00:29 +10:00