Remove unused function `ofLatestCheckpoint` from BlockHeight

This commit is contained in:
Francisco Gindre 2023-10-30 15:57:45 -03:00
parent fb322948cf
commit d0e154ded7
No known key found for this signature in database
GPG Key ID: 6B61CD8DAA2862B4
1 changed files with 0 additions and 10 deletions

View File

@ -84,13 +84,3 @@ extension Checkpoint: Decodable {
return ret
}
}
public extension BlockHeight {
/// Useful when creating a new wallet to reduce sync times.
/// - Parameters:
/// - zcashNetwork: Network to use for the block height.
/// - Returns: The block height of the newest checkpoint known by the SDK.
static func ofLatestCheckpoint(network: ZcashNetwork) -> BlockHeight {
Checkpoint.birthday(with: BlockHeight.max, network: network).height
}
}