Update and add tests for chain maps

This commit is contained in:
Paul Hauner
2018-10-24 14:48:20 +02:00
parent 68e4c47cd3
commit e48e423b30
2 changed files with 90 additions and 11 deletions

View File

@@ -78,7 +78,7 @@ impl<T> BeaconChain<T>
let mut attester_proposer_maps = HashMap::new();
let (attester_map, proposer_map) = generate_attester_and_proposer_maps(
&crystallized_state, 0)?;
&crystallized_state.shard_and_committee_for_slots, 0)?;
active_states.insert(canonical_latest_block_hash, active_state);
crystallized_states.insert(canonical_latest_block_hash, crystallized_state);