From a975365768b92efc5e418596c01249cf9916abac Mon Sep 17 00:00:00 2001 From: Simon McLoughlin Date: Thu, 11 Jul 2024 11:58:16 +0100 Subject: [PATCH] prevent TzKT from listening to all wallets --- Sources/KukaiCoreSwift/Clients/TzKTClient.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/KukaiCoreSwift/Clients/TzKTClient.swift b/Sources/KukaiCoreSwift/Clients/TzKTClient.swift index a1e88ef..4498a0e 100644 --- a/Sources/KukaiCoreSwift/Clients/TzKTClient.swift +++ b/Sources/KukaiCoreSwift/Clients/TzKTClient.swift @@ -1148,6 +1148,7 @@ public class TzKTClient { extension TzKTClient: HubConnectionDelegate { public func connectionDidOpen(hubConnection: HubConnection) { + if addressesToWatch.count == 0 { return } // Request to be subscribed to events belonging to the given account let subscription = AccountSubscription(addresses: addressesToWatch)