zcash-android-wallet-sdk / cash.z.wallet.sdk.block / CompactBlockDownloader / downloadBlockRange

downloadBlockRange

suspend fun downloadBlockRange(heightRange: IntRange): Int

Requests the given range of blocks from the lightwalletService and then persists them to the compactBlockStore.

Parameters

heightRange - the inclusive range of heights to request. For example 10..20 would request 11 blocks (including block 10 and block 20).

Return
the number of blocks that were returned in the results from the lightwalletService.