zcash-android-wallet-sdk / cash.z.wallet.sdk.block / CompactBlockStore / rewindTo

rewindTo

abstract suspend fun rewindTo(height: Int): Unit

Remove every block above and including the given height.

After this operation, the data store will look the same as one that has not yet stored the given block height. Meaning, if max height is 100 block and rewindTo(50) is called, then the highest block remaining will be 49.

Parameters

height - the target height to which to rewind.