// // FakeStorage.swift // ZcashLightClientKit // // Created by Francisco Gindre on 12/09/2019. // Copyright © 2019 Electric Coin Company. All rights reserved. // import Foundation @testable import ZcashLightClientKit class ZcashConsoleFakeStorage: CompactBlockRepository { func closeDBConnection() { } func latestHeightAsync() async throws -> BlockHeight { latestBlockHeight } func write(blocks: [ZcashCompactBlock]) async throws { fakeSave(blocks: blocks) } func rewindAsync(to height: BlockHeight) async throws { fakeRewind(to: height) } func latestHeight() throws -> Int { return self.latestBlockHeight } func latestBlocks(count: Int) throws -> [ZcashLightClientKit.ZcashCompactBlock] { return (0..