File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -487,18 +487,17 @@ async function main() {
487
487
numberOfMissingJurors = await getMissingJurors ( dispute ) ;
488
488
} while ( ! numberOfMissingJurors . eq ( 0 ) && ! maxDrawingTimePassed ) ;
489
489
}
490
-
491
- // ----------------------------------------------- //
492
- // BACK TO STAKING PHASE //
493
- // ----------------------------------------------- //
494
490
// At this point, either all disputes are fully drawn or max drawing time has passed
495
- let i = 0 ;
496
- while ( ! ( await isPhaseStaking ( ) ) && i ++ < 3 ) {
497
- await passPhase ( ) ;
498
- }
499
491
}
500
492
}
501
493
494
+ // ----------------------------------------------- //
495
+ // BACK TO STAKING PHASE //
496
+ // ----------------------------------------------- //
497
+ for ( let i = 0 ; i < 3 && ! ( await isPhaseStaking ( ) ) ; i ++ ) {
498
+ await passPhase ( ) ;
499
+ }
500
+
502
501
await sendHeartbeat ( ) ;
503
502
504
503
logger . info ( `Current phase: ${ PHASES [ await sortition . phase ( ) ] } ` ) ;
You can’t perform that action at this time.
0 commit comments