check flag before slower hash comparison
This commit is contained in:
parent
7577c625b3
commit
8db65ef574
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue