Merge pull request #1375 from LukasKorba/1374-ZashiError-generated-code-update-is-missing
[#1374] ZashiError generated code update is missing
This commit is contained in:
commit
c7c2438b73
|
@ -584,6 +584,12 @@ public enum ZcashError: Equatable, Error {
|
|||
/// Indicates that this Synchronizer is disconnected from its lightwalletd server.
|
||||
/// ZSYNCO0006
|
||||
case synchronizerDisconnected
|
||||
/// The attempt to switch endpoints failed. Check that the hostname and port are correct, and are formatted as <hostname>:<port>.
|
||||
/// ZSYNCO0007
|
||||
case synchronizerServerSwitch
|
||||
/// The spending key does not belong to the wallet.
|
||||
/// ZSYNCO0008
|
||||
case synchronizerSpendingKeyDoesNotBelongToTheWallet
|
||||
|
||||
public var message: String {
|
||||
switch self {
|
||||
|
@ -754,6 +760,8 @@ public enum ZcashError: Equatable, Error {
|
|||
case .synchronizerLatestUTXOsInvalidTAddress: return "LatestUTXOs for the address failed, invalid t-address."
|
||||
case .synchronizerRewindUnknownArchorHeight: return "Rewind failed, unknown archor height"
|
||||
case .synchronizerDisconnected: return "Indicates that this Synchronizer is disconnected from its lightwalletd server."
|
||||
case .synchronizerServerSwitch: return "The attempt to switch endpoints failed. Check that the hostname and port are correct, and are formatted as <hostname>:<port>."
|
||||
case .synchronizerSpendingKeyDoesNotBelongToTheWallet: return "The spending key does not belong to the wallet."
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -926,6 +934,8 @@ public enum ZcashError: Equatable, Error {
|
|||
case .synchronizerLatestUTXOsInvalidTAddress: return .synchronizerLatestUTXOsInvalidTAddress
|
||||
case .synchronizerRewindUnknownArchorHeight: return .synchronizerRewindUnknownArchorHeight
|
||||
case .synchronizerDisconnected: return .synchronizerDisconnected
|
||||
case .synchronizerServerSwitch: return .synchronizerServerSwitch
|
||||
case .synchronizerSpendingKeyDoesNotBelongToTheWallet: return .synchronizerSpendingKeyDoesNotBelongToTheWallet
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -343,4 +343,8 @@ public enum ZcashErrorCode: String {
|
|||
case synchronizerRewindUnknownArchorHeight = "ZSYNCO0005"
|
||||
/// Indicates that this Synchronizer is disconnected from its lightwalletd server.
|
||||
case synchronizerDisconnected = "ZSYNCO0006"
|
||||
/// The attempt to switch endpoints failed. Check that the hostname and port are correct, and are formatted as <hostname>:<port>.
|
||||
case synchronizerServerSwitch = "ZSYNCO0007"
|
||||
/// The spending key does not belong to the wallet.
|
||||
case synchronizerSpendingKeyDoesNotBelongToTheWallet = "ZSYNCO0008"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue