exp disable of some gossip conditions

This commit is contained in:
Agnish Ghosh 2024-07-03 21:51:59 +05:30
parent 152d276d78
commit 9f42196c75
No known key found for this signature in database
GPG Key ID: 7BDDA05D1B25E9F8
1 changed files with 11 additions and 11 deletions

View File

@ -392,10 +392,10 @@ proc validateBlobSidecar*(
# [IGNORE] The sidecar is the first sidecar for the tuple # [IGNORE] The sidecar is the first sidecar for the tuple
# (block_header.slot, block_header.proposer_index, blob_sidecar.index) # (block_header.slot, block_header.proposer_index, blob_sidecar.index)
# with valid header signature, sidecar inclusion proof, and kzg proof. # with valid header signature, sidecar inclusion proof, and kzg proof.
let block_root = hash_tree_root(block_header) # let block_root = hash_tree_root(block_header)
if dag.getBlockRef(block_root).isSome(): # if dag.getBlockRef(block_root).isSome():
return errIgnore("BlobSidecar: already have block") # return errIgnore("BlobSidecar: already have block")
if blobQuarantine[].hasBlob( # if blobQuarantine[].hasBlob(
block_header.slot, block_header.proposer_index, blob_sidecar.index): block_header.slot, block_header.proposer_index, blob_sidecar.index):
return errIgnore("BlobSidecar: already have valid blob from same proposer") return errIgnore("BlobSidecar: already have valid blob from same proposer")
@ -413,13 +413,13 @@ proc validateBlobSidecar*(
# #
# [REJECT] The sidecar's block's parent (defined by # [REJECT] The sidecar's block's parent (defined by
# `block_header.parent_root`) passes validation. # `block_header.parent_root`) passes validation.
let parent = dag.getBlockRef(block_header.parent_root).valueOr: # let parent = dag.getBlockRef(block_header.parent_root).valueOr:
if block_header.parent_root in quarantine[].unviable: # if block_header.parent_root in quarantine[].unviable:
quarantine[].addUnviable(block_root) # quarantine[].addUnviable(block_root)
return dag.checkedReject("BlobSidecar: parent not validated") # return dag.checkedReject("BlobSidecar: parent not validated")
else: # else:
quarantine[].addMissing(block_header.parent_root) # quarantine[].addMissing(block_header.parent_root)
return errIgnore("BlobSidecar: parent not found") # return errIgnore("BlobSidecar: parent not found")
# [REJECT] The sidecar is from a higher slot than the sidecar's # [REJECT] The sidecar is from a higher slot than the sidecar's
# block's parent (defined by `block_header.parent_root`). # block's parent (defined by `block_header.parent_root`).