Added mempool inSync property to backend. Display on frontend when not in sync and on't create statistics when not in sync.
fixes #29
This commit is contained in:
@@ -23,7 +23,12 @@ class Statistics {
|
||||
|
||||
setTimeout(() => {
|
||||
this.runStatistics();
|
||||
this.intervalTimer = setInterval(() => { this.runStatistics(); }, 1 * 60 * 1000);
|
||||
this.intervalTimer = setInterval(() => {
|
||||
if (!memPool.isInSync()) {
|
||||
return;
|
||||
}
|
||||
this.runStatistics();
|
||||
}, 1 * 60 * 1000);
|
||||
}, difference);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user