[#1181] Stop update balance before updateChainTip

This commit is contained in:
Honza Rychnovský 2023-08-25 15:55:35 +02:00 committed by Honza
parent 9795610bb9
commit 0e40b3a807
1 changed files with 2 additions and 3 deletions

View File

@ -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()
}