From 0e40b3a80736140b49daacf5a69dc1535d741178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Rychnovsk=C3=BD?= Date: Fri, 25 Aug 2023 15:55:35 +0200 Subject: [PATCH] [#1181] Stop update balance before updateChainTip --- .../src/main/java/cash/z/ecc/android/sdk/SdkSynchronizer.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sdk-lib/src/main/java/cash/z/ecc/android/sdk/SdkSynchronizer.kt b/sdk-lib/src/main/java/cash/z/ecc/android/sdk/SdkSynchronizer.kt index e2efed16..7c593504 100644 --- a/sdk-lib/src/main/java/cash/z/ecc/android/sdk/SdkSynchronizer.kt +++ b/sdk-lib/src/main/java/cash/z/ecc/android/sdk/SdkSynchronizer.kt @@ -395,11 +395,10 @@ class SdkSynchronizer private constructor( private fun CoroutineScope.onReady() { Twig.debug { "Starting synchronizer…" } - // Triggering UTXOs fetch and transparent balance update at the beginning of the block sync right after the app - // start, as it makes the transparent transactions appearance faster + // Triggering UTXOs and transactions fetching at the beginning of the block synchronization right after the + // app starts makes the transparent transactions appear faster. launch(CoroutineExceptionHandler(::onCriticalError)) { refreshUtxos(Account.DEFAULT) - refreshTransparentBalance() refreshTransactions() }