mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-19 07:15:54 -04:00
Change block chain sync timeout behaviour
This commit is contained in:
parent
16592cd20a
commit
b168833182
@ -352,11 +352,13 @@ class MainViewModel implements ViewModel {
|
||||
private void setBitcoinNetworkSyncProgress(double value) {
|
||||
blockchainSyncProgress.set(value);
|
||||
if (value >= 1) {
|
||||
stopBlockchainSyncTimeout();
|
||||
blockchainSyncInfo.set("Blockchain synchronization complete.");
|
||||
blockchainSyncIconId.set("image-connection-synced");
|
||||
}
|
||||
else if (value > 0.0) {
|
||||
// We stop as soon the download started the timeout
|
||||
stopBlockchainSyncTimeout();
|
||||
|
||||
blockchainSyncInfo.set("Synchronizing blockchain: " + formatter.formatToPercent(value));
|
||||
blockchainSyncInfoFooter.set("Synchronizing: " + formatter.formatToPercent(value));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user