xmr-btc-swap/swap
Franck Royer f35ed436ce
Allow EventLoop to hold a database ready to pass to alice::Buider
The `EventLoop` will use the `Builder` interface to instantiate a
`Swap` upon receiving a `SwapRequest` and successfully doing an
execution setup.
Before this change, the `EventLoop` would have to hold the path to the
db and re-open the db everytime it wants to construct a swap.

With this change, we can open the DB once and then hold a
`Arc<Database>` in the `EventLoop` and pass it to new `Swap`s structs.
2021-02-10 16:42:53 +11:00
..
src Allow EventLoop to hold a database ready to pass to alice::Buider 2021-02-10 16:42:53 +11:00
tests work in review comments 2021-02-08 21:20:58 +11:00
Cargo.toml Move main.rs to cli.rs to prepare for nectar binary 2021-02-10 16:42:51 +11:00