From 3e7adb3981bfab6c726fa98bd66c5b75f30407e6 Mon Sep 17 00:00:00 2001 From: vbuterin Date: Fri, 19 Oct 2018 12:05:00 -0400 Subject: [PATCH] Moved randao_mix from crystallized to active state --- specs/beacon-chain.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/beacon-chain.md b/specs/beacon-chain.md index bcf45c68c..fd2b47790 100644 --- a/specs/beacon-chain.md +++ b/specs/beacon-chain.md @@ -814,12 +814,12 @@ Then: For any validator that was added or removed from the active validator list during this state recalculation: * If the validator was removed, remove their index from the `current_persistent_committees` and `next_persistent_committees` objects. -* If the validator was added with index `validator_index`, let `assigned_shard = hash(crystallized_state.randao_mix + bytes8(validator_index)) % SHARD_COUNT`. Add `validator_index` to the end of `next_persistent_committees[assigned_shard]`. +* If the validator was added with index `validator_index`, let `assigned_shard = hash(active_state.randao_mix + bytes8(validator_index)) % SHARD_COUNT`. Add `validator_index` to the end of `next_persistent_committees[assigned_shard]`. If `block.slot % SHARD_PERSISTENT_COMMITTEE_CHANGE_PERIOD == 0`, then: * Set `current_persistent_committees = next_persistent_committees` -* Set `next_persistent_committees = get_persistent_shuffling(validators, crystallized_state.randao_mix)` +* Set `next_persistent_committees = get_persistent_shuffling(validators, active_state.randao_mix)` ### TODO