lighthouse/consensus
Pawan Dhananjay 4499adc7fd Check proposer index during block production (#2740)
## Issue Addressed

Resolves #2612 

## Proposed Changes

Implements both the checks mentioned in the original issue. 
1. Verifies the `randao_reveal` in the beacon node
2. Cross checks the proposer index after getting back the block from the beacon node.

## Additional info
The block production time increases by ~10x because of the signature verification on the beacon node (based on the `beacon_block_production_process_seconds` metric) when running on a local testnet.
2021-11-01 07:44:40 +00:00
..
cached_tree_hash Get arbitrary check passing (2.0) (#2710) 2021-10-14 02:58:11 +00:00
fork_choice Fix test warnings on Rust 1.56.0 (#2743) 2021-10-22 04:49:51 +00:00
int_to_bytes Update to tokio 1.1 (#2172) 2021-02-10 23:29:49 +00:00
merkle_proof Get arbitrary check passing (2.0) (#2710) 2021-10-14 02:58:11 +00:00
proto_array Implement SSZ union type (#2579) 2021-09-25 05:58:36 +00:00
safe_arith Remove saturating arith from state_processing (#1644) 2020-09-25 05:18:21 +00:00
serde_utils Updates to make crates publishable (#2472) 2021-09-03 01:10:25 +00:00
ssz Get arbitrary check passing (2.0) (#2710) 2021-10-14 02:58:11 +00:00
ssz_derive Implement SSZ union type (#2579) 2021-09-25 05:58:36 +00:00
ssz_types Get arbitrary check passing (2.0) (#2710) 2021-10-14 02:58:11 +00:00
state_processing Check proposer index during block production (#2740) 2021-11-01 07:44:40 +00:00
swap_or_not_shuffle Get arbitrary check passing (2.0) (#2710) 2021-10-14 02:58:11 +00:00
tree_hash Get arbitrary check passing (2.0) (#2710) 2021-10-14 02:58:11 +00:00
tree_hash_derive Implement SSZ union type (#2579) 2021-09-25 05:58:36 +00:00
types Add API version headers and map_fork_name! (#2745) 2021-10-28 01:18:04 +00:00