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.
This commit is contained in:
Pawan Dhananjay
2021-11-01 07:44:40 +00:00
parent ffb04e1a9e
commit 4499adc7fd
3 changed files with 18 additions and 2 deletions

View File

@@ -2889,7 +2889,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
&mut state,
&block,
None,
BlockSignatureStrategy::NoVerification,
BlockSignatureStrategy::VerifyRandao,
&self.spec,
)?;
drop(process_timer);