mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Don't log things the user doesn't care about
The user configured neither a Bitcoin wallet backend nor the monero-wallet-rpc so let's not tell them about it. Fixes #244.
This commit is contained in:
parent
6b74761e34
commit
4e9e186462
@ -325,13 +325,7 @@ async fn init_wallets(
|
|||||||
bitcoin_wallet
|
bitcoin_wallet
|
||||||
.sync_wallet()
|
.sync_wallet()
|
||||||
.await
|
.await
|
||||||
.expect("Could not sync btc wallet");
|
.context("failed to sync balance of bitcoin wallet")?;
|
||||||
|
|
||||||
let bitcoin_balance = bitcoin_wallet.balance().await?;
|
|
||||||
info!(
|
|
||||||
"Connection to Bitcoin wallet succeeded, balance: {}",
|
|
||||||
bitcoin_balance
|
|
||||||
);
|
|
||||||
|
|
||||||
let monero_wallet = monero::Wallet::new(
|
let monero_wallet = monero::Wallet::new(
|
||||||
monero_wallet_rpc_url.clone(),
|
monero_wallet_rpc_url.clone(),
|
||||||
@ -357,15 +351,12 @@ async fn init_wallets(
|
|||||||
"Created Monero wallet for blockchain monitoring with name {}",
|
"Created Monero wallet for blockchain monitoring with name {}",
|
||||||
MONERO_BLOCKCHAIN_MONITORING_WALLET_NAME
|
MONERO_BLOCKCHAIN_MONITORING_WALLET_NAME
|
||||||
);
|
);
|
||||||
} else {
|
|
||||||
info!(
|
|
||||||
"Opened Monero wallet for blockchain monitoring with name {}",
|
|
||||||
MONERO_BLOCKCHAIN_MONITORING_WALLET_NAME
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let _test_wallet_connection = monero_wallet.block_height().await?;
|
let _test_wallet_connection = monero_wallet
|
||||||
info!("The Monero wallet RPC is set up correctly!");
|
.block_height()
|
||||||
|
.await
|
||||||
|
.context("failed to validate connection to monero-wallet-rpc")?;
|
||||||
|
|
||||||
Ok((bitcoin_wallet, monero_wallet))
|
Ok((bitcoin_wallet, monero_wallet))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user