Skip to content

Commit 61a6170

Browse files
committed
fix: template var and return
1 parent c7306f0 commit 61a6170

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

beacon_chain/gossip_processing/gossip_validation.nim

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,16 +463,14 @@ template validateBeaconBlockGloas(
463463
# `bid.parent_block_hash`) passes all validation.
464464
withState(dag.headState):
465465
when consensusFork >= ConsensusFork.Gloas:
466-
if bid.parent_block_hash != forkyState.latest_block_hash:
466+
if bid.parent_block_hash != forkyState.data.latest_block_hash:
467467
return dag.checkedReject("validateBeaconBlockGloas: invalid execution payload parent")
468468

469469
# [REJECT] The bid's parent (defined by `bid.parent_block_root`) equals the
470470
# block's parent (defined by `block.parent_root`).
471471
if bid.parent_block_root != blck.parent_root:
472472
return dag.checkedReject("validateBeaconBlockGloas: parent block root mismatch")
473473

474-
ok()
475-
476474
# https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.4/specs/deneb/p2p-interface.md#blob_sidecar_subnet_id
477475
proc validateBlobSidecar*(
478476
dag: ChainDAGRef, quarantine: ref Quarantine,

0 commit comments

Comments
 (0)