From 5df441d936235d314534635ef7d1a514e4bd2d6d Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Thu, 25 Jul 2024 22:09:24 +0200 Subject: [PATCH] `ForkyBlobSidecar` in gossip validation --- beacon_chain/gossip_processing/gossip_validation.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_chain/gossip_processing/gossip_validation.nim b/beacon_chain/gossip_processing/gossip_validation.nim index 1f2e3dd35..82e5fbf9d 100644 --- a/beacon_chain/gossip_processing/gossip_validation.nim +++ b/beacon_chain/gossip_processing/gossip_validation.nim @@ -201,7 +201,7 @@ func check_attestation_subnet( ok() func check_blob_sidecar_inclusion_proof( - blob_sidecar: deneb.BlobSidecar): Result[void, ValidationError] = + blob_sidecar: ForkyBlobSidecar): Result[void, ValidationError] = let res = blob_sidecar.verify_blob_sidecar_inclusion_proof() if res.isErr: return errReject(res.error) @@ -342,7 +342,7 @@ template validateBeaconBlockBellatrix( # https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.4/specs/deneb/p2p-interface.md#blob_sidecar_subnet_id proc validateBlobSidecar*( dag: ChainDAGRef, quarantine: ref Quarantine, - blobQuarantine: ref BlobQuarantine, blob_sidecar: BlobSidecar, + blobQuarantine: ref BlobQuarantine, blob_sidecar: ForkyBlobSidecar, wallTime: BeaconTime, subnet_id: BlobId): Result[void, ValidationError] = # Some of the checks below have been reordered compared to the spec, to # perform the cheap checks first - in particular, we want to avoid loading