Skip to content

Commit

Permalink
Don't show syncing until text for sync mode Blockchair
Browse files Browse the repository at this point in the history
  • Loading branch information
omurovch committed Dec 14, 2023
1 parent 2dccf5f commit 16ab60b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ abstract class BitcoinBaseAdapter(
}
is BitcoinCore.KitState.Syncing -> {
val progress = (kitState.progress * 100).toInt()
val lastBlockDate = kit.lastBlockInfo?.timestamp?.let { Date(it * 1000) }
val lastBlockDate = if (syncMode is BitcoinCore.SyncMode.Blockchair) null else kit.lastBlockInfo?.timestamp?.let { Date(it * 1000) }

AdapterState.Syncing(progress, lastBlockDate)
}
Expand Down

0 comments on commit 16ab60b

Please sign in to comment.