feat: add synced event
This commit is contained in:
parent
db18efb245
commit
0321136ac0
|
@ -177,6 +177,7 @@ export default abstract class BaseClient extends EventEmitter {
|
||||||
this.latestCommittee = await this.syncFromLastUpdate();
|
this.latestCommittee = await this.syncFromLastUpdate();
|
||||||
}
|
}
|
||||||
this._latestPeriod = currentPeriod;
|
this._latestPeriod = currentPeriod;
|
||||||
|
this.emit("synced");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.syncMutex.release();
|
this.syncMutex.release();
|
||||||
|
|
Loading…
Reference in New Issue