This commit is contained in:
Agnish Ghosh 2024-10-02 23:22:40 +05:30
parent c0c04a9528
commit 5bcc599b66
1 changed files with 8 additions and 8 deletions

View File

@ -640,14 +640,14 @@ proc storeBlock(
# TODO with v1.4.0, not sure this is still relevant # TODO with v1.4.0, not sure this is still relevant
# Establish blob viability before calling addHeadBlock to avoid # Establish blob viability before calling addHeadBlock to avoid
# writing the block in case of blob error. # writing the block in case of blob error.
when typeof(signedBlock).kind >= ConsensusFork.Deneb: # when typeof(signedBlock).kind >= ConsensusFork.Deneb:
if dataColumnsOpt.isSome: # if dataColumnsOpt.isSome:
let data_columns = dataColumnsOpt.get() # let data_columns = dataColumnsOpt.get()
let kzgCommits = signedBlock.message.body.blob_kzg_commitments.asSeq # let kzgCommits = signedBlock.message.body.blob_kzg_commitments.asSeq
debugEcho "Hitting verification" # debugEcho "Hitting verification"
if data_columns.len == 0 or kzgCommits.len == 0: # if data_columns.len == 0 or kzgCommits.len == 0:
debugEcho "Hitting verification 2" # debugEcho "Hitting verification 2"
return err((VerifierError.Invalid, ProcessingStatus.completed)) # return err((VerifierError.Invalid, ProcessingStatus.completed))
type Trusted = typeof signedBlock.asTrusted() type Trusted = typeof signedBlock.asTrusted()