From a50415a719408f55c409e40be725bb205e510a03 Mon Sep 17 00:00:00 2001 From: tersec Date: Mon, 8 Jun 2020 09:22:31 +0200 Subject: [PATCH] temporary workaround for witti attestation dropping (#1131) --- beacon_chain/attestation_pool.nim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/beacon_chain/attestation_pool.nim b/beacon_chain/attestation_pool.nim index 078890667..a7335baa0 100644 --- a/beacon_chain/attestation_pool.nim +++ b/beacon_chain/attestation_pool.nim @@ -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