block processing: v0.6.1 headers, randao, eth1 data

This commit is contained in:
Michael Sproul
2019-05-20 12:42:02 +10:00
parent aa01808a00
commit 55537078a1
4 changed files with 23 additions and 20 deletions

View File

@@ -478,7 +478,7 @@ impl<T: EthSpec> BeaconState<T> {
///
/// See `Self::get_randao_mix`.
///
/// Spec v0.5.1
/// Spec v0.6.1
pub fn update_randao_mix(&mut self, epoch: Epoch, signature: &Signature) -> Result<(), Error> {
let i = epoch.as_usize() % T::LatestRandaoMixesLength::to_usize();