check flag before slower hash comparison

This commit is contained in:
Jacek Sieka 2023-05-23 09:09:22 +02:00
parent 7577c625b3
commit 8db65ef574
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ func init*(
BlockRef.init(
root, Opt.some Eth2Digest(blck.body.execution_payload.block_hash),
executionValid =
blck.body.execution_payload.block_hash == ZERO_HASH or executionValid,
executionValid or blck.body.execution_payload.block_hash == ZERO_HASH,
blck.slot)
func parent*(bs: BlockSlot): BlockSlot =