temporary workaround for witti attestation dropping (#1131)

This commit is contained in:
tersec 2020-06-08 09:22:31 +02:00 committed by GitHub
parent 3ce98d5bca
commit a50415a719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -532,6 +532,14 @@ proc isValidAttestation*(
attestation_pool_validation = validation.aggregation_bits
return false
# Temporary: on Witti testnet, attestations and blocks routinely come in out
# of order. TODO we need to support this case but to enable participation in
# Witti, before https://github.com/status-im/nim-beacon-chain/issues/1106 is
# fixed, just disable these validations for now.
const kludge = true
if kludge:
return true
# The block being voted for (attestation.data.beacon_block_root) passes
# validation.
# We rely on the block pool to have been validated, so check for the