Tidy ancestor iterators

This commit is contained in:
Paul Hauner
2019-08-05 16:25:21 +10:00
parent 01054ecf2f
commit b096e3a643
11 changed files with 125 additions and 199 deletions

View File

@@ -40,7 +40,11 @@ impl<T: BeaconChainTypes> AttestationService for AttestationServiceInstance<T> {
// verify the slot, drop lock on state afterwards
{
let slot_requested = req.get_slot();
let state = &self.chain.current_state();
// TODO: this whole module is legacy and not maintained well.
let state = &self
.chain
.speculative_state()
.expect("This is legacy code and should be removed");
// Start by performing some checks
// Check that the AttestationData is for the current slot (otherwise it will not be valid)