avoid packing attestations from other forks (#3893)

When there is heavy forking, proposals may get missed due to including
attestations from different forks that later fail verification.
Checking attestation signatures when building blocks should fix this.
This commit is contained in:
Etan Kissling 2022-07-21 13:04:56 +02:00 committed by GitHub
parent 735c1df62f
commit 5dcfb0c4e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -577,8 +577,7 @@ proc getAttestationsForBlock*(pool: var AttestationPool,
# Attestations are checked based on the state that we're adding the
# attestation to - there might have been a fork between when we first
# saw the attestation and the time that we added it
if not check_attestation(
state.data, attestation, {skipBlsValidation}, cache).isOk():
if check_attestation(state.data, attestation, {}, cache).isErr():
continue
let score = attCache.score(