Tidy BeaconStateCow

This commit is contained in:
Paul Hauner
2019-09-03 09:50:15 +10:00
parent a0e019b4d7
commit 969b6d7575
2 changed files with 37 additions and 40 deletions

View File

@@ -32,7 +32,7 @@ impl<T: BeaconChainTypes> ValidatorService for ValidatorServiceInstance<T> {
let slot = epoch.start_slot(T::EthSpec::slots_per_epoch());
let mut state = if let Ok(state) = self.chain.state_at_slot(slot) {
state.as_ref().clone()
state.clone()
} else {
let log_clone = self.log.clone();
let f = sink