Skip to content

Commit

Permalink
Merge b8e94b8 into f40f42b
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths authored Dec 17, 2021
2 parents f40f42b + b8e94b8 commit 2bcfa6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/lodestar/src/chain/precomputeNextEpochTransition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export class PrecomputeNextEpochTransitionScheduler {

const {slot: headSlot, blockRoot} = this.chain.forkChoice.getHead();
const nextEpoch = computeEpochAtSlot(clockSlot) + 1;
// Don't want to pre compute epoch transition at pre genesis
if (nextEpoch <= 0) return;
// node may be syncing or out of synced
if (headSlot < clockSlot) {
this.metrics?.precomputeNextEpochTransition.count.inc({result: "skip"}, 1);
Expand Down

0 comments on commit 2bcfa6b

Please sign in to comment.