bug fix in enqueueBlock for data column verification

This commit is contained in:
Agnish Ghosh 2024-08-26 13:59:46 +05:30
parent d860373044
commit 23355dc049
1 changed files with 2 additions and 2 deletions

View File

@ -218,11 +218,11 @@ proc storeBackfillBlock(
let data_columns = dataColumnsOpt.get() let data_columns = dataColumnsOpt.get()
if data_columns.len > 0: if data_columns.len > 0:
for i in 0..<data_columns.len: for i in 0..<data_columns.len:
let r = verify_data_column_sidecar_kzg_proofs(data_columns[i][]) let r = verify_data_column_sidecar_kzg_proofs(data_columns[i])
if r.isErr(): if r.isErr():
debug "backfill data column validation failed", debug "backfill data column validation failed",
blockRoot = shortLog(signedBlock.root), blockRoot = shortLog(signedBlock.root),
column_sidecar = shortLog(data_columns[i]()), column_sidecar = shortLog(data_columns[i]),
blck = shortLog(signedBlock.message), blck = shortLog(signedBlock.message),
signature = shortLog(signedBlock.signature), signature = shortLog(signedBlock.signature),
msg = r.error() msg = r.error()