diff --git a/CHANGELOG.md b/CHANGELOG.md index d574e48d..96879371 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,13 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [3.0.0-beta.13] - 2025-09-17 - - ASB: require Monero wallet to be fully synchronized before providing quotes - ORCHESTRATOR: Allow re-generating `docker-compose.yml` while preserving the asb config (`config.toml`). If you've ran the `orchestrator` before you can download a newer version, run it and an updated `docker-compose.yml` will be generated (overwriting the previous file). All data and configuration options will be preserved as they are stored inside the Docker volumes and the `config.toml` file. - -## [3.0.0-beta.12] - 2025-09-14 - - GUI + CLI: Fix an issue where it'd take a long time to redeem the Monero. We did not properly skip the block scanning. - GUI + CLI: Assume Monero double spend safety after 22 instead of after 12 blocks given the recent large re-org attacks - ORCHESTRATOR: Change exposed mainnet port from `9839` to `9939` diff --git a/monero-sys/src/lib.rs b/monero-sys/src/lib.rs index 8b62814b..26b50dea 100644 --- a/monero-sys/src/lib.rs +++ b/monero-sys/src/lib.rs @@ -536,7 +536,7 @@ impl WalletHandle { } /// Check if the wallet is synchronized. - async fn synchronized(&self) -> bool { + pub async fn synchronized(&self) -> bool { self.call(move |wallet| wallet.synchronized()).await } diff --git a/swap/src/asb/event_loop.rs b/swap/src/asb/event_loop.rs index 3e1639d8..226f49ee 100644 --- a/swap/src/asb/event_loop.rs +++ b/swap/src/asb/event_loop.rs @@ -917,10 +917,10 @@ mod quote { /// This is how long we maximally wait for the wallet operation const MONERO_WALLET_OPERATION_TIMEOUT: Duration = Duration::from_secs(10); - /// First check if the wallet is synchronized - /// We cannot safely provide a balance if the wallet is not synchronized - /// We cannot be sure that the balance is accurate - /// It is dangerous to provide a balancer higher than the actual balance + // First check if the wallet is synchronized + // We cannot safely provide a balance if the wallet is not synchronized + // We cannot be sure that the balance is accurate + // It is dangerous to provide a balancer higher than the actual balance if !timeout(MONERO_WALLET_OPERATION_TIMEOUT, wallet.synchronized()) .await .context("Timeout while checking if wallet is synchronized")?