fix lint warnings
This commit is contained in:
parent
688dbea28b
commit
f26ad811c6
|
@ -12,9 +12,9 @@ import MnemonicSwift
|
||||||
struct DemoAppConfig {
|
struct DemoAppConfig {
|
||||||
static var host = ZcashSDK.isMainnet ? "lightwalletd.electriccoin.co" : "lightwalletd.testnet.electriccoin.co"
|
static var host = ZcashSDK.isMainnet ? "lightwalletd.electriccoin.co" : "lightwalletd.testnet.electriccoin.co"
|
||||||
static var port: Int = 9067
|
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 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 {
|
static var address: String {
|
||||||
"\(host):\(port)"
|
"\(host):\(port)"
|
||||||
}
|
}
|
||||||
|
|
|
@ -500,7 +500,6 @@ public class CompactBlockProcessor {
|
||||||
saplingActivation: BlockHeight,
|
saplingActivation: BlockHeight,
|
||||||
rustBackend: ZcashRustBackendWelding.Type) throws {
|
rustBackend: ZcashRustBackendWelding.Type) throws {
|
||||||
|
|
||||||
|
|
||||||
// check network types
|
// check network types
|
||||||
guard let remoteNetworkType = ZcashSDK.NetworkType(info.chainName) else {
|
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")
|
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 {
|
extension CompactBlockProcessor {
|
||||||
|
|
||||||
class NextStateHelper {
|
class NextStateHelper {
|
||||||
|
@ -1273,7 +1271,6 @@ extension CompactBlockProcessor {
|
||||||
config: Configuration,
|
config: Configuration,
|
||||||
rustBackend: ZcashRustBackendWelding.Type) throws -> FigureNextBatchOperation.NextState {
|
rustBackend: ZcashRustBackendWelding.Type) throws -> FigureNextBatchOperation.NextState {
|
||||||
|
|
||||||
|
|
||||||
let info = try service.getInfo()
|
let info = try service.getInfo()
|
||||||
|
|
||||||
try CompactBlockProcessor.validateServerInfo(info, saplingActivation: config.saplingActivation, rustBackend: rustBackend)
|
try CompactBlockProcessor.validateServerInfo(info, saplingActivation: config.saplingActivation, rustBackend: rustBackend)
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
|
|
||||||
class FigureNextBatchOperation: ZcashOperation {
|
class FigureNextBatchOperation: ZcashOperation {
|
||||||
enum NextState {
|
enum NextState {
|
||||||
case finishProcessing(height: BlockHeight)
|
case finishProcessing(height: BlockHeight)
|
||||||
|
|
Loading…
Reference in New Issue