Remove unused function `ofLatestCheckpoint` from BlockHeight
This commit is contained in:
parent
fb322948cf
commit
d0e154ded7
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue