don't access potentially unitialized Opts (#4054)

This commit is contained in:
tersec 2022-08-31 16:36:24 +00:00 committed by GitHub
parent ad0d30093f
commit 2309f11e9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -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,