From b4810fabebc0557651cd95aafd90fed3cc7f90c9 Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Sun, 2 Jun 2024 14:49:38 +0530 Subject: [PATCH] fix --- beacon_chain/gossip_processing/gossip_validation.nim | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/beacon_chain/gossip_processing/gossip_validation.nim b/beacon_chain/gossip_processing/gossip_validation.nim index eba2b1d06..958380e04 100644 --- a/beacon_chain/gossip_processing/gossip_validation.nim +++ b/beacon_chain/gossip_processing/gossip_validation.nim @@ -213,12 +213,16 @@ func check_data_column_sidecar_inclusion_proof( if res.isErr: return errReject(res.error) + ok() + proc check_data_column_sidecar_kzg_proofs( data_column_sidecar: DataColumnSidecar): Result[void, ValidationError] = let res = data_column_sidecar.verify_data_column_sidecar_kzg_proofs() if res.isErr: return errReject(res.error) + ok() + # Gossip Validation # ---------------------------------------------------------------- @@ -523,10 +527,10 @@ proc validateDataColumnSidecar*( # # [REJECT] The sidecar's column data is valid as # # verified by `verify_data_column_kzg_proofs(sidecar)` - # block: - # let r = check_data_column_sidecar_kzg_proofs(data_column_sidecar) - # if r.isErr: - # return dag.checkedReject(r.error) + block: + let r = check_data_column_sidecar_kzg_proofs(data_column_sidecar) + if r.isErr: + return dag.checkedReject(r.error) # [IGNORE] The sidecar is the first sidecar for the tuple # (block_header.slot, block_header.proposer_index, blob_sidecar.index)