Skip to content

Commit

Permalink
Resolve intermittent errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKim20 committed Apr 26, 2024
1 parent a44a39a commit e9a35e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/validator/src/scheduler/BridgeScheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ export class BridgeScheduler extends Scheduler {
}

protected async work() {
if (this._validators === undefined) {
logger.warn("Validators is not ready yet.");
return;
}
try {
this.new_time_stamp = ContractUtils.getTimeStamp();
const old_source_period = Math.floor(this.old_time_stamp / 60);
Expand Down

0 comments on commit e9a35e4

Please sign in to comment.