diff --git a/packages/beacon-node/src/chain/chain.ts b/packages/beacon-node/src/chain/chain.ts index 36f4add8e49..5c2ddca0c29 100644 --- a/packages/beacon-node/src/chain/chain.ts +++ b/packages/beacon-node/src/chain/chain.ts @@ -338,8 +338,9 @@ export class BeaconChain implements IBeaconChain { } async getHeadStateAtEpoch(epoch: Epoch, regenCaller: RegenCaller): Promise { + // using getHeadState() means we'll use checkpointStateCache if it's available const headState = this.getHeadState(); - // head is in current epoch, or we pulled up head from previous epoch already + // head state is in the same epoch, or we pulled up head state already from past epoch if (computeEpochAtSlot(headState.slot) <= epoch) { // should go to this most of the time return this.getHeadState();