From 2309f11e9ecb5e06c44f6f4bf95f77bfde3534a6 Mon Sep 17 00:00:00 2001 From: tersec Date: Wed, 31 Aug 2022 16:36:24 +0000 Subject: [PATCH] don't access potentially unitialized Opts (#4054) --- beacon_chain/validators/validator_duties.nim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/beacon_chain/validators/validator_duties.nim b/beacon_chain/validators/validator_duties.nim index d5129081a..3611f1aa3 100644 --- a/beacon_chain/validators/validator_duties.nim +++ b/beacon_chain/validators/validator_duties.nim @@ -433,10 +433,7 @@ proc getExecutionPayload( latestHead, latestSafe, latestFinalized, timestamp, feeRecipient, - cachedHeadBlockRoot = lastFcU.get.headBlockRoot, - cachedFinalizedBlockRoot = lastFcU.get.finalizedBlockRoot, - cachedTimestamp = lastFcU.get.timestamp, - cachedFeeRecipient = lastFcU.get.feeRecipient + cachedForkchoiceUpdateInformation = lastFcU (await forkchoice_updated( proposalState.bellatrixData.data,