Update Validator RPC and cache building

This commit is contained in:
Age Manning
2019-03-28 14:32:02 +11:00
parent d7289ab55e
commit 6f0c0e47c3
5 changed files with 14 additions and 8 deletions

View File

@@ -348,6 +348,11 @@ where
per_slot_processing(&mut *state, &latest_block_header, &self.spec)?;
}
state.build_epoch_cache(RelativeEpoch::Previous, &self.spec)?;
state.build_epoch_cache(RelativeEpoch::Current, &self.spec)?;
state.build_epoch_cache(RelativeEpoch::NextWithoutRegistryChange, &self.spec)?;
state.build_epoch_cache(RelativeEpoch::NextWithRegistryChange, &self.spec)?;
state.update_pubkey_cache()?;
Ok(())
}