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
|
# 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 blobsOpt.isSome:
|
# # if blobsOpt.isSome:
|
||||||
# # let blobs = blobsOpt.get()
|
# # let blobs = blobsOpt.get()
|
||||||
# # let kzgCommits = signedBlock.message.body.blob_kzg_commitments.asSeq
|
# # let kzgCommits = signedBlock.message.body.blob_kzg_commitments.asSeq
|
||||||
|
@ -653,23 +653,23 @@ proc storeBlock(
|
||||||
# # msg = r.error()
|
# # msg = r.error()
|
||||||
# # return err((VerifierError.Invalid, ProcessingStatus.completed))
|
# # return err((VerifierError.Invalid, ProcessingStatus.completed))
|
||||||
|
|
||||||
# if dataColumnsOpt.isSome:
|
if dataColumnsOpt.isSome:
|
||||||
# let data_column_sidecars = dataColumnsOpt.get
|
let data_column_sidecars = dataColumnsOpt.get
|
||||||
# if data_column_sidecars.len > 0:
|
if data_column_sidecars.len > 0:
|
||||||
# for i in 0..<data_column_sidecars.len:
|
for i in 0..<data_column_sidecars.len:
|
||||||
# let r = verify_data_column_sidecar_kzg_proofs(data_column_sidecars[i][])
|
let r = verify_data_column_sidecar_kzg_proofs(data_column_sidecars[i][])
|
||||||
|
|
||||||
# if r.isErr():
|
if r.isErr():
|
||||||
# debug "data column sidecar verification failed",
|
debug "data column sidecar verification failed",
|
||||||
# blockroot = shortLog(signedBlock.root),
|
blockroot = shortLog(signedBlock.root),
|
||||||
# column_sidecar = shortLog(data_column_sidecars[i][]),
|
column_sidecar = shortLog(data_column_sidecars[i][]),
|
||||||
# blck = shortLog(signedBlock.message),
|
blck = shortLog(signedBlock.message),
|
||||||
# kzgCommits =
|
kzgCommits =
|
||||||
# mapIt(data_column_sidecars[i][].kzg_commitments,
|
mapIt(data_column_sidecars[i][].kzg_commitments,
|
||||||
# shortLog(it)),
|
shortLog(it)),
|
||||||
# signature = shortLog(signedBlock.signature),
|
signature = shortLog(signedBlock.signature),
|
||||||
# msg = r.error
|
msg = r.error
|
||||||
# return err((VerifierError.Invalid, ProcessingStatus.completed))
|
return err((VerifierError.Invalid, ProcessingStatus.completed))
|
||||||
|
|
||||||
type Trusted = typeof signedBlock.asTrusted()
|
type Trusted = typeof signedBlock.asTrusted()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue