Skip to content

Commit 12aa60d

Browse files
committed
removing the need to delete from nextEpochProposers in call to getBeaconProposer
1 parent 72fd6ea commit 12aa60d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/beacon-state-transition/src/cache/epochContext.ts

-7
Original file line numberDiff line numberDiff line change
@@ -518,13 +518,6 @@ export class EpochContext {
518518
`Requesting beacon proposer for different epoch current shuffling: ${epoch} != ${this.currentShuffling.epoch}`
519519
);
520520
}
521-
522-
for (const cachedEpoch of this.nextEpochProposers.keys()) {
523-
// Do not keep past cached future proposal duties.
524-
if (cachedEpoch <= epoch) {
525-
this.nextEpochProposers.delete(cachedEpoch);
526-
}
527-
}
528521
return this.proposers[slot % SLOTS_PER_EPOCH];
529522
}
530523

0 commit comments

Comments
 (0)