zcash-android-wallet-sdk / cash.z.wallet.sdk.block / CompactBlockProcessor / ProcessorInfo

ProcessorInfo

data class ProcessorInfo

Data class for holding detailed information about the processor.

Parameters

networkBlockHeight - the latest block available to lightwalletd that may or may not be downloaded by this wallet yet.

lastScannedHeight - the height up to which the wallet last scanned. This determines where the next scan will begin.

lastDownloadedHeight - the last compact block that was successfully downloaded.

lastDownloadRange - inclusive range to download. Meaning, if the range is 10..10, then we will download exactly block 10. If the range is 11..10, then we want to download block 11 but can't.

lastScanRange - inclusive range to scan.

Constructors

<init>

Data class for holding detailed information about the processor.

ProcessorInfo(networkBlockHeight: Int = -1, lastScannedHeight: Int = -1, lastDownloadedHeight: Int = -1, lastDownloadRange: IntRange = 0..-1, lastScanRange: IntRange = 0..-1)

Properties

hasData

Determines whether this instance has data.

val hasData: Boolean

isDownloading

Determines whether this instance is actively downloading compact blocks.

val isDownloading: Boolean

isScanning

Determines whether this instance is actively scanning or validating compact blocks.

val isScanning: Boolean

lastDownloadedHeight

the last compact block that was successfully downloaded.

val lastDownloadedHeight: Int

lastDownloadRange

inclusive range to download. Meaning, if the range is 10..10, then we will download exactly block 10. If the range is 11..10, then we want to download block 11 but can't.

val lastDownloadRange: IntRange

lastScannedHeight

the height up to which the wallet last scanned. This determines where the next scan will begin.

val lastScannedHeight: Int

lastScanRange

inclusive range to scan.

val lastScanRange: IntRange

networkBlockHeight

the latest block available to lightwalletd that may or may not be downloaded by this wallet yet.

val networkBlockHeight: Int

scanProgress

The amount of scan progress from 0 to 100.

val scanProgress: Int