`ForkyBlobSidecar` in gossip validation

This commit is contained in:
Etan Kissling 2024-07-25 22:09:24 +02:00
parent 88bdc6ae55
commit 5df441d936
No known key found for this signature in database
GPG Key ID: B21DA824C5A3D03D
1 changed files with 2 additions and 2 deletions

View File

@ -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