fix(core): update

This commit is contained in:
Philipp Kunz 2022-02-27 23:23:51 +01:00
parent d761b1459d
commit 5ab8115b34

View File

@ -68,6 +68,7 @@ export class Bobcat {
await plugins.smartpromise.timeoutAndContinue(this.checkMinerStatus()); await plugins.smartpromise.timeoutAndContinue(this.checkMinerStatus());
await plugins.smartdelay.delayFor(10000); await plugins.smartdelay.delayFor(10000);
await plugins.smartpromise.timeoutAndContinue(this.gatherMinerDetails()); await plugins.smartpromise.timeoutAndContinue(this.gatherMinerDetails());
await plugins.smartdelay.delayFor(10000);
if (this.latestStatus.status === 'Synced' && parseInt(this.latestStatus.gap) > -100 && parseInt(this.latestStatus.gap) < 50) { if (this.latestStatus.status === 'Synced' && parseInt(this.latestStatus.gap) > -100 && parseInt(this.latestStatus.gap) < 50) {
console.log(`Miner ${this.latestMinerDetails.animal} at ${this.networkAddress} is Synced. ok!`) console.log(`Miner ${this.latestMinerDetails.animal} at ${this.networkAddress} is Synced. ok!`)
return; return;