- [#419] Fix Unavailable Transport 14 when attempting to sync (#426)

Closes #419

This eliminates the keepalive settings since they seem to clash with defaults
on ligthwalletd and the client gets rejected earlier than needed.
This commit is contained in:
Francisco Gindre 2022-07-14 20:19:46 -03:00 committed by GitHub
parent f2ed1f01ae
commit 470775dfaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 8 deletions

View File

@ -118,12 +118,6 @@ public class LightWalletGRPCService {
let channel = connectionBuilder
.withConnectivityStateDelegate(connectionManager, executingOn: queue)
.withKeepalive(
ClientConnectionKeepalive(
interval: .seconds(15),
timeout: .seconds(10)
)
)
.connect(host: host, port: port)
self.channel = channel
@ -131,7 +125,7 @@ public class LightWalletGRPCService {
compactTxStreamer = CompactTxStreamerClient(
channel: self.channel,
defaultCallOptions: Self.callOptions(
timeLimit: TimeLimit.timeout(.seconds(Int64(singleCallTimeout)))
timeLimit: self.singleCallTimeout
)
)
}
@ -348,7 +342,7 @@ extension LightWalletGRPCService: LightWalletService {
public func latestBlockHeight() throws -> BlockHeight {
guard let height = try? latestBlock().compactBlockHeight() else {
throw LightWalletServiceError.invalidBlock
throw LightWalletServiceError.timeOut
}
return height
}