Fix failing tests

This commit is contained in:
Paul Hauner
2019-01-26 22:22:52 +11:00
parent 7ee836d118
commit 22a08e5160
4 changed files with 23 additions and 14 deletions

View File

@@ -240,11 +240,7 @@ where
ensure!(
attestation.data.justified_block_root
== *state
.get_block_root(
&state,
attestation.data.justified_slot,
self.spec.latest_block_roots_length
)
.get_block_root(attestation.data.justified_slot, &self.spec)
.ok_or(Error::NoBlockRoot)?,
Error::BadAttestation
);
@@ -364,6 +360,10 @@ where
Error::BadCustodyResponses
);
if state.slot % self.spec.epoch_length == 0 {
state.per_epoch_processing(&self.spec);
}
Ok(state)
}
}