fix(asb): make wallet::synchronized public, revert changelog into new release

This commit is contained in:
binarybaron 2025-09-17 14:26:54 -04:00
parent f561904cc7
commit 3878473b93
3 changed files with 5 additions and 10 deletions

View file

@ -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`

View file

@ -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
}

View file

@ -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")?