fix lint warnings

This commit is contained in:
Francisco Gindre 2021-06-20 11:59:00 -03:00
parent 688dbea28b
commit f26ad811c6
3 changed files with 3 additions and 7 deletions

View File

@ -12,9 +12,9 @@ import MnemonicSwift
struct DemoAppConfig {
static var host = ZcashSDK.isMainnet ? "lightwalletd.electriccoin.co" : "lightwalletd.testnet.electriccoin.co"
static var port: Int = 9067
static var birthdayHeight: BlockHeight = ZcashSDK.isMainnet ? 935000 : 620_000
static var birthdayHeight: BlockHeight = ZcashSDK.isMainnet ? 935000 : 1386000
static var network = ZcashSDK.isMainnet ? ZcashNetwork.mainNet : ZcashNetwork.testNet
static var seed = ZcashSDK.isMainnet ? try! Mnemonic.deterministicSeedBytes(from: "old wise letter cigar ready miracle settle crystal bag amateur dial index slot dune crisp ready chest advice camera always drive dentist sport smoke") : Array("testreferencealicetestreferencealice".utf8)
static var seed = try! Mnemonic.deterministicSeedBytes(from: "live combine flight accident slow soda mind bright absent bid hen shy decade biology amazing mix enlist ensure biology rhythm snap duty soap armor")
static var address: String {
"\(host):\(port)"
}

View File

@ -500,7 +500,6 @@ public class CompactBlockProcessor {
saplingActivation: BlockHeight,
rustBackend: ZcashRustBackendWelding.Type) throws {
// check network types
guard let remoteNetworkType = ZcashSDK.NetworkType(info.chainName) else {
throw CompactBlockProcessorError.generalError(message: "Chain name does not match. Expected either 'test' or 'main' but received '\(info.chainName)'. this is probably an API or programming error")
@ -1241,7 +1240,6 @@ public extension BlockProgressReporting {
}
}
extension CompactBlockProcessor {
class NextStateHelper {
@ -1272,8 +1270,7 @@ extension CompactBlockProcessor {
downloader: CompactBlockDownloading,
config: Configuration,
rustBackend: ZcashRustBackendWelding.Type) throws -> FigureNextBatchOperation.NextState {
let info = try service.getInfo()
try CompactBlockProcessor.validateServerInfo(info, saplingActivation: config.saplingActivation, rustBackend: rustBackend)

View File

@ -7,7 +7,6 @@
import Foundation
class FigureNextBatchOperation: ZcashOperation {
enum NextState {
case finishProcessing(height: BlockHeight)