Refresh monero monitoring wallet at startup to ensure daemon is is available

This commit is contained in:
binarybaron 2023-08-31 00:42:25 +02:00
parent d664f1e71d
commit 844ebc7de3

View File

@ -541,6 +541,11 @@ async fn init_monero_wallet(
)
.await?;
monero_wallet
.refresh()
.await
.context("Failed to connect to monero daemon")?;
Ok((monero_wallet, monero_wallet_rpc_process))
}