lighthouse-pulse/beacon_node
Paul Hauner b49b4291a3 Disallow attesting to optimistic head (#3140)
## Issue Addressed

NA

## Proposed Changes

Disallow the production of attestations and retrieval of unaggregated attestations when they reference an optimistic head. Add tests to this end.

I also moved `BeaconChain::produce_unaggregated_attestation_for_block` to the `BeaconChainHarness`. It was only being used during tests, so it's nice to stop pretending it's production code. I also needed something that could produce attestations to optimistic blocks in order to simulate scenarios where the justified checkpoint is determined invalid (if no one would attest to an optimistic block, we could never justify it and then flip it to invalid).

## Additional Info

- ~~Blocked on #3126~~
2022-04-13 03:54:42 +00:00
..
beacon_chain Disallow attesting to optimistic head (#3140) 2022-04-13 03:54:42 +00:00
client Update and consolidate dependencies (#3136) 2022-04-04 00:26:16 +00:00
eth1 v2.2.0 (#3139) 2022-04-05 02:53:09 +00:00
execution_layer Transition Block Proposer Preparation (#3088) 2022-04-07 14:03:34 +00:00
genesis Update and consolidate dependencies (#3136) 2022-04-04 00:26:16 +00:00
http_api Disallow attesting to optimistic head (#3140) 2022-04-13 03:54:42 +00:00
http_metrics Support IPv6 in BN and VC HTTP APIs (#3104) 2022-03-24 00:04:49 +00:00
lighthouse_network Fix rpc limits version 2 (#3146) 2022-04-07 23:45:38 +00:00
network keep failed finalized chains to avoid retries (#3142) 2022-04-13 01:10:55 +00:00
operation_pool Update and consolidate dependencies (#3136) 2022-04-04 00:26:16 +00:00
src Fix SPRP default value in cli (#3145) 2022-04-07 04:04:11 +00:00
store Update and consolidate dependencies (#3136) 2022-04-04 00:26:16 +00:00
tests Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
timer Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
Cargo.toml v2.2.1 (#3149) 2022-04-12 02:52:12 +00:00