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 ycash
  • get_tx: true to retrieve transaction details
  • anchor_offset: minimum number of confirmations for note selection
  • max_cost: tx that have a higher spending cost are excluded
  • progress_callback: function callback during synchronization
  • cancel: cancellation mutex, set to true to abort