fix gossip validation for duplicate blob sidecars (#4881)

`SignedBlobSidecar: already have blob with valid signature` is IGNORE
in spec, but was implemented as REJECT. Align with spec.
This commit is contained in:
Etan Kissling 2023-05-01 08:08:39 +02:00 committed by GitHub
parent 55592db3b1
commit bb62fee7d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -289,7 +289,8 @@ proc validateBlobSidecar*(
# [IGNORE] The sidecar is the only sidecar with valid signature
# received for the tuple (sidecar.block_root, sidecar.index).
if blobQuarantine[].hasBlob(sbs.message):
return errReject("SignedBlobSidecar: already have blob with valid signature")
return errIgnore(
"SignedBlobSidecar: already have blob with valid signature")
ok()