From 844ebc7de3479c99f0bf1c55b2cc07ea25c8defd Mon Sep 17 00:00:00 2001 From: binarybaron <86064887+binarybaron@users.noreply.github.com> Date: Thu, 31 Aug 2023 00:42:25 +0200 Subject: [PATCH] Refresh monero monitoring wallet at startup to ensure daemon is is available --- swap/src/bin/swap.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/swap/src/bin/swap.rs b/swap/src/bin/swap.rs index 33c718c3..c1b37d0d 100644 --- a/swap/src/bin/swap.rs +++ b/swap/src/bin/swap.rs @@ -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)) }