This commit is contained in:
Agnish Ghosh 2024-07-02 19:28:23 +05:30
parent 77cc2ef358
commit 8d2c4893d8
No known key found for this signature in database
GPG Key ID: 7BDDA05D1B25E9F8
2 changed files with 11 additions and 11 deletions

View File

@ -598,14 +598,14 @@ proc validateDataColumnSidecar*(
# [REJECT] The proposer signature of `blob_sidecar.signed_block_header`,
# is valid with respect to the `block_header.proposer_index` pubkey.
if not verify_block_signature(
dag.forkAtEpoch(block_header.slot.epoch),
getStateField(dag.headState, genesis_validators_root),
block_header.slot,
block_root,
dag.validatorKey(proposer).get(),
data_column_sidecar.signed_block_header.signature):
return dag.checkedReject("DataColumnSidecar: Invalid proposer signature")
# if not verify_block_signature(
# dag.forkAtEpoch(block_header.slot.epoch),
# getStateField(dag.headState, genesis_validators_root),
# block_header.slot,
# block_root,
# dag.validatorKey(proposer).get(),
# data_column_sidecar.signed_block_header.signature):
# return dag.checkedReject("DataColumnSidecar: Invalid proposer signature")
# [REJECT] The sidecar's column data is valid as
# verified by `verify_data_column_kzg_proofs(sidecar)`
@ -615,8 +615,8 @@ proc validateDataColumnSidecar*(
return dag.checkedReject(r.error)
debugEcho "5"
# Send notification about new data column sidecar via callback
# if not(isNil(dataColumnQuarantine.onDataColumnSidecarCallback)):
# dataColumnQuarantine.onDataColumnSidecarCallback(data_column_sidecar)
if not(isNil(dataColumnQuarantine.onDataColumnSidecarCallback)):
dataColumnQuarantine.onDataColumnSidecarCallback(data_column_sidecar)
debugEcho "6"
ok()

View File

@ -1492,7 +1492,7 @@ proc onSlotEnd(node: BeaconNode, slot: Slot) {.async.} =
# the pruning for later
node.dag.pruneHistory()
node.pruneBlobs(slot)
node.pruneDataColumns(slot)
# node.pruneDataColumns(slot)
when declared(GC_fullCollect):
# The slots in the beacon node work as frames in a game: we want to make