mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 15:15:16 -05:00
use active index root for generate seed mix in
This commit is contained in:
@@ -785,7 +785,7 @@ def generate_seed(state: BeaconState,
|
||||
"""
|
||||
return hash(
|
||||
get_randao_mix(state, Epoch(epoch + EPOCHS_PER_HISTORICAL_VECTOR - MIN_SEED_LOOKAHEAD)) +
|
||||
state.compact_committees_roots[epoch % EPOCHS_PER_HISTORICAL_VECTOR] +
|
||||
hash_tree_root(List[ValidatorIndex, VALIDATOR_REGISTRY_LIMIT](get_active_validator_indices(state, epoch))) +
|
||||
int_to_bytes(epoch, length=32)
|
||||
)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user