lighthouse/beacon_node
Paul Hauner 03cefd0065 Expand observed attestations capacity (#2266)
## Issue Addressed

NA

## Proposed Changes

I noticed the following error on one of our nodes:

```
Mar 18 00:03:35 ip-xxxx lighthouse-bn[333503]: Mar 18 00:03:35.103 ERRO Unable to validate aggregate            error: ObservedAttestersError(EpochTooLow { epoch: Epoch(23961), lowest_permissible_epoch: Epoch(23962) }), peer_id: 16Uiu2HAm5GL5KzPLhvfg9MBBFSpBqTVGRFSiTg285oezzWcZzwEv
```

The slot during this log was 766,815 (the last slot of the epoch). I believe this is due to an off-by-one error in `observed_attesters` where we were failing to provide enough capacity to store observations from the previous, current and next epochs. See code comments for further reasoning.

Here's a link to the spec: https://github.com/ethereum/eth2.0-specs/blob/v1.0.1/specs/phase0/p2p-interface.md#beacon_aggregate_and_proof

## Additional Info

NA
2021-03-29 23:42:34 +00:00
..
beacon_chain Expand observed attestations capacity (#2266) 2021-03-29 23:42:34 +00:00
client Use the database to persist the pubkey cache (#2234) 2021-03-04 01:25:12 +00:00
eth1 VC: accept unknown fields in chain spec (#2277) 2021-03-26 04:53:57 +00:00
eth2_libp2p VC: accept unknown fields in chain spec (#2277) 2021-03-26 04:53:57 +00:00
genesis Update to tokio 1.1 (#2172) 2021-02-10 23:29:49 +00:00
http_api Optimize validator duties (#2243) 2021-03-17 05:09:57 +00:00
http_metrics Switch back to warp with cors wildcard support (#2211) 2021-02-18 22:33:12 +00:00
network Optimize validator duties (#2243) 2021-03-17 05:09:57 +00:00
operation_pool Update pool/attestations and committees endpoints (#1899) 2020-11-18 23:31:39 +00:00
src VC: accept unknown fields in chain spec (#2277) 2021-03-26 04:53:57 +00:00
store VC: accept unknown fields in chain spec (#2277) 2021-03-26 04:53:57 +00:00
tests Update to tokio 1.1 (#2172) 2021-02-10 23:29:49 +00:00
timer Update to tokio 1.1 (#2172) 2021-02-10 23:29:49 +00:00
websocket_server Server sent events (#1920) 2020-12-04 00:18:58 +00:00
Cargo.toml v1.2.1 (#2263) 2021-03-18 04:20:46 +00:00