Skip to content

Commit

Permalink
Merge ddb703d into 2b5935a
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig authored Oct 30, 2023
2 parents 2b5935a + ddb703d commit 822d66e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/validator/src/services/blockDuties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ export class BlockDutiesService {
const isLastSlotEpoch = computeStartSlotAtEpoch(nextEpoch) === currentSlot + 1;
if (isLastSlotEpoch) {
// no need to await for other steps, just poll proposers for next epoch
void this.pollBeaconProposersNextEpoch(currentSlot, nextEpoch, signal);
this.pollBeaconProposersNextEpoch(currentSlot, nextEpoch, signal).catch((e) => {
this.logger.error("Error on pollBeaconProposersNextEpoch", {}, e);
});
}

// Notify the block proposal service for any proposals that we have in our cache.
Expand Down Expand Up @@ -163,7 +165,7 @@ export class BlockDutiesService {
}

/**
* This is to avoid some delay on the first slot of the opoch when validators has proposal duties.
* This is to avoid some delay on the first slot of the epoch when validators have proposal duties.
* See https://github.com/ChainSafe/lodestar/issues/5792
*/
private async pollBeaconProposersNextEpoch(currentSlot: Slot, nextEpoch: Epoch, signal: AbortSignal): Promise<void> {
Expand Down

0 comments on commit 822d66e

Please sign in to comment.