implicitly backfill pre-finalized block execution validity from finalized block (#4984)

This commit is contained in:
tersec 2023-05-23 06:26:31 +00:00 committed by GitHub
parent 5ef748b19d
commit 7577c625b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1967,7 +1967,7 @@ template is_optimistic*(dag: ChainDAGRef, root: Eth2Digest): bool =
not blck.get.executionValid
else:
# Either it doesn't exist at all, or it's finalized
false
not dag.finalizedHead.blck.executionValid
proc markBlockVerified*(dag: ChainDAGRef, blck: BlockRef) =
var cur = blck