xmr-btc-swap/swap
Daniel Karzel 9f1deb9fdc Wrap the Monero wallet client in a Mutex
In order to ensure that we can atomically generate_from_keys and then reload a wallet,
we have to wrap the client of the monero wallet RPC inside a mutex.
When introducing the Mutex I noticed that several inner RPC calls were leaking to the
swap crate monero wallet. As this is a violation of boundaries I introduced the traits
`GetAddress`, `WalletBlockHeight` and `Refresh`.

Note that the monero wallet could potentially know its own public view key and
public spend key. If we refactor the wallet to include this information upon wallet
creation we can also generate addresses using `monero::Address::standard`.
2021-02-25 00:33:58 +11:00
..
src Wrap the Monero wallet client in a Mutex 2021-02-25 00:33:58 +11:00
tests Wrap the Monero wallet client in a Mutex 2021-02-25 00:33:58 +11:00
Cargo.toml Remove unnecessary log dependency 2021-02-23 14:30:32 +11:00