Set backend to out of sync after connection retry interval has exceeded.

This commit is contained in:
softsimon committed 2021-01-20 17:16:43 +07:00
1 parent a158794e2c
commit 9900f4da80
2 files changed
+8 -1

No files matched your search

+6 -1
View File
@@ -29,10 +29,15 @@ class Mempool {
setInterval(this.updateTxPerSecond.bind(this), 1000);
}
public isInSync() {
public isInSync(): boolean {
return this.inSync;
}
public setOutOfSync(): void {
this.inSync = false;
loadingIndicators.setProgress('mempool', 99);
}
public getLatestTransactions() {
return this.latestTransactions;
}