Skip to content

Commit

Permalink
Remove duplicated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplion committed May 16, 2022
1 parent 736cef7 commit 9a51aa4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/beacon-state-transition/src/cache/epochContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,7 @@ export class EpochContext {
const currentProposerSeed = getSeed(state, this.currentShuffling.epoch, DOMAIN_BEACON_PROPOSER);
this.proposers = computeProposers(currentProposerSeed, this.currentShuffling, this.effectiveBalanceIncrements);

/**
* The next proposer seed is only used in the getBeaconProposersNextEpoch call. It cannot
* be moved into getBeaconProposersNextEpoch because it needs state as input and all info
* needed by getBeaconProposersNextEpoch should be in the epoch context.
*/
// Only pre-compute the seed since it's very cheap. Do the expensive computeProposers() call only on demand.
this.proposersNextEpoch = {computed: false, seed: getSeed(state, this.nextShuffling.epoch, DOMAIN_BEACON_PROPOSER)};

// TODO: DEDUPLICATE from createEpochContext
Expand Down

0 comments on commit 9a51aa4

Please sign in to comment.