pub async fn coin_sync(
coin: u8,
get_tx: bool,
anchor_offset: u32,
max_cost: u32,
progress_callback: impl Fn(Progress) + Send + 'static,
cancel: &'static Mutex<bool>
) -> Result<()>Expand description
Asynchronously perform warp sync
Arguments
coin: 0 for zcash, 1 for ycashget_tx: true to retrieve transaction detailsanchor_offset: minimum number of confirmations for note selectionmax_cost: tx that have a higher spending cost are excludedprogress_callback: function callback during synchronizationcancel: cancellation mutex, set to true to abort