Skip to content

Commit 2309f11

Browse files
authored
don't access potentially unitialized Opts (#4054)
1 parent ad0d300 commit 2309f11

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

beacon_chain/validators/validator_duties.nim

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,7 @@ proc getExecutionPayload(
433433
latestHead, latestSafe, latestFinalized,
434434
timestamp,
435435
feeRecipient,
436-
cachedHeadBlockRoot = lastFcU.get.headBlockRoot,
437-
cachedFinalizedBlockRoot = lastFcU.get.finalizedBlockRoot,
438-
cachedTimestamp = lastFcU.get.timestamp,
439-
cachedFeeRecipient = lastFcU.get.feeRecipient
436+
cachedForkchoiceUpdateInformation = lastFcU
440437

441438
(await forkchoice_updated(
442439
proposalState.bellatrixData.data,

0 commit comments

Comments
 (0)