no verify kzg during addBlock
This commit is contained in:
parent
66bf20e7f0
commit
b573caccc7
|
@ -636,7 +636,7 @@ proc storeBlock(
|
|||
# TODO with v1.4.0, not sure this is still relevant
|
||||
# Establish blob viability before calling addHeadBlock to avoid
|
||||
# writing the block in case of blob error.
|
||||
when typeof(signedBlock).kind >= ConsensusFork.Deneb:
|
||||
# when typeof(signedBlock).kind >= ConsensusFork.Deneb:
|
||||
# # if blobsOpt.isSome:
|
||||
# # let blobs = blobsOpt.get()
|
||||
# # let kzgCommits = signedBlock.message.body.blob_kzg_commitments.asSeq
|
||||
|
@ -653,31 +653,6 @@ 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..<data_column_sidecars.len:
|
||||
let r = verify_data_column_sidecar_kzg_proofs(data_column_sidecars[i][])
|
||||
|
||||
if r.isErr():
|
||||
debug "data column sidecar verification failed",
|
||||
blockroot = shortLog(signedBlock.root),
|
||||
column_sidecar = shortLog(data_column_sidecars[i][]),
|
||||
blck = shortLog(signedBlock.message),
|
||||
kzgCommits =
|
||||
mapIt(data_column_sidecars[i][].kzg_commitments,
|
||||
shortLog(it)),
|
||||
signature = shortLog(signedBlock.signature),
|
||||
msg = r.error
|
||||
return err((VerifierError.Invalid, ProcessingStatus.completed))
|
||||
|
||||
notice "Verified data columns successfully",
|
||||
blockroot = shortLog(signedBlock.root),
|
||||
column_sidecar = shortLog(data_column_sidecars[i][]),
|
||||
blck = shortLog(signedBlock.message),
|
||||
kzgCommits =
|
||||
mapIt(data_column_sidecars[i][].kzg_commitments,
|
||||
shortLog(it))
|
||||
|
||||
type Trusted = typeof signedBlock.asTrusted()
|
||||
|
||||
|
|
Loading…
Reference in New Issue