mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-09-19 20:34:38 -04:00
Implement human-readable serialization for monero private key
Some of the swap states were unable to be serialized using serde_json because this was not implemented.
This commit is contained in:
parent
8fb15ba7aa
commit
cdfc8419ad
4 changed files with 45 additions and 10 deletions
|
@ -18,6 +18,7 @@ use swap::asb::FixedRate;
|
|||
use swap::bitcoin::{CancelTimelock, PunishTimelock, TxCancel, TxPunish, TxRedeem, TxRefund};
|
||||
use swap::database::SledDatabase;
|
||||
use swap::env::{Config, GetConfig};
|
||||
use swap::fs::ensure_directory_exists;
|
||||
use swap::network::swarm;
|
||||
use swap::protocol::alice::{AliceState, Swap};
|
||||
use swap::protocol::bob::BobState;
|
||||
|
@ -156,13 +157,16 @@ async fn init_containers(cli: &Cli) -> (Monero, Containers<'_>) {
|
|||
.await
|
||||
.unwrap();
|
||||
|
||||
(monero, Containers {
|
||||
bitcoind_url,
|
||||
bitcoind,
|
||||
monerod_container,
|
||||
monero_wallet_rpc_containers,
|
||||
electrs,
|
||||
})
|
||||
(
|
||||
monero,
|
||||
Containers {
|
||||
bitcoind_url,
|
||||
bitcoind,
|
||||
monerod_container,
|
||||
monero_wallet_rpc_containers,
|
||||
electrs,
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
async fn init_bitcoind_container(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue