From e80bd36f769794349a1b4fc83eaa6869731bbf5e Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Fri, 26 Jul 2024 14:19:44 +0530 Subject: [PATCH] add: verify data column kzg proof during storeBlock, added serializeDataColumn for better logs --- .../gossip_processing/block_processor.nim | 18 ++++++++++++++++++ beacon_chain/spec/datatypes/eip7594.nim | 19 ++++++++++++++++--- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/beacon_chain/gossip_processing/block_processor.nim b/beacon_chain/gossip_processing/block_processor.nim index 8fdd7460e..79a526478 100644 --- a/beacon_chain/gossip_processing/block_processor.nim +++ b/beacon_chain/gossip_processing/block_processor.nim @@ -644,6 +644,24 @@ proc storeBlock( msg = r.error() return err((VerifierError.Invalid, ProcessingStatus.completed)) + if dataColumnsOpt.isSome: + let data_column_sidecars = dataColumnsOpt.get + if data_column_sidecars.len > 0: + for i in 0..