From 6896e405210410ffc579b15a9fa9bfb41af33f67 Mon Sep 17 00:00:00 2001 From: Lukas Korba Date: Mon, 2 Sep 2024 10:27:14 +0200 Subject: [PATCH] [#1482] Fix the wipe function - Added a code that's stoping and cleaning up the Synchronizer, will test if it helps [#1482] Fix the wipe function - stop and start the synchronizer [#1482] Fix the wipe function - relying on switch of endpoint only --- Sources/ZcashLightClientKit/Synchronizer/SDKSynchronizer.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/ZcashLightClientKit/Synchronizer/SDKSynchronizer.swift b/Sources/ZcashLightClientKit/Synchronizer/SDKSynchronizer.swift index 1f03a2f9..a7e9cec9 100644 --- a/Sources/ZcashLightClientKit/Synchronizer/SDKSynchronizer.swift +++ b/Sources/ZcashLightClientKit/Synchronizer/SDKSynchronizer.swift @@ -639,6 +639,7 @@ public class SDKSynchronizer: Synchronizer { ) do { + try await switchTo(endpoint: initializer.endpoint) try await blockProcessor.wipe(context: context) } catch { subject.send(completion: .failure(error))