diff --git a/packages/beacon-node/src/chain/prepareNextSlot.ts b/packages/beacon-node/src/chain/prepareNextSlot.ts index fddbc9026fca..3f730df3bf1d 100644 --- a/packages/beacon-node/src/chain/prepareNextSlot.ts +++ b/packages/beacon-node/src/chain/prepareNextSlot.ts @@ -150,13 +150,15 @@ export class PrepareNextSlotScheduler { this.logger.verbose("Weak head detected. May build on this block instead:", { proposerHeadSlot, proposerHeadRoot, + headSlot, + headRoot, }); this.metrics?.weakHeadDetected.inc(); updatedPrepareState = (await this.chain.regen.getBlockSlotState( proposerHeadRoot, prepareSlot, {dontTransferCache: !isEpochTransition}, - RegenCaller.precomputeEpoch + RegenCaller.predictProposerHead )) as CachedBeaconStateExecutions; updatedHeadRoot = proposerHeadRoot; } diff --git a/packages/beacon-node/src/chain/regen/interface.ts b/packages/beacon-node/src/chain/regen/interface.ts index 650d92143a8e..a1021de4aeab 100644 --- a/packages/beacon-node/src/chain/regen/interface.ts +++ b/packages/beacon-node/src/chain/regen/interface.ts @@ -11,6 +11,7 @@ export enum RegenCaller { validateGossipBlock = "validateGossipBlock", validateGossipBlob = "validateGossipBlob", precomputeEpoch = "precomputeEpoch", + predictProposerHead = "predictProposerHead", produceAttestationData = "produceAttestationData", processBlocksInEpoch = "processBlocksInEpoch", validateGossipAggregateAndProof = "validateGossipAggregateAndProof",