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

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

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;
}