Skip to main content

sync_status

Function sync_status 

Source
pub async fn sync_status<W>(
    wallet: &W,
) -> Result<SyncStatus, SyncStatusError<W::Error>>
Expand description

Creates a self::SyncStatus from the wallet’s current crate::wallet::SyncState. If there is still nullifiers to be re-fetched when scanning is complete, the percentages will be overrided to 99% until sync is complete.

Intended to be called while self::sync is running in a separate task.