spec v0.6.1: process proposer/attester slashings

This commit is contained in:
Michael Sproul
2019-05-20 15:08:20 +10:00
parent dab11c1eed
commit 857c4ed2db
3 changed files with 12 additions and 15 deletions

View File

@@ -546,10 +546,10 @@ impl<T: EthSpec> BeaconState<T> {
/// Replace `active_index_roots` with clones of `index_root`.
///
/// Spec v0.5.1
/// Spec v0.6.1
pub fn fill_active_index_roots_with(&mut self, index_root: Hash256) {
self.latest_active_index_roots =
vec![index_root; self.latest_active_index_roots.len() as usize].into()
vec![index_root; self.latest_active_index_roots.len()].into()
}
/// Safely obtains the index for latest state roots, given some `slot`.