logging in block processor
This commit is contained in:
parent
fa5f47c468
commit
b9a3aa8277
|
@ -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,23 +653,23 @@ 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 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))
|
||||
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))
|
||||
|
||||
type Trusted = typeof signedBlock.asTrusted()
|
||||
|
||||
|
|
Loading…
Reference in New Issue