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