Fix recently introduced errors for gRPC block prod

This commit is contained in:
Paul Hauner
2019-06-01 12:36:10 +10:00
parent 7058f62b50
commit 8831db1e0f
3 changed files with 8 additions and 2 deletions

View File

@@ -371,6 +371,12 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
}
*/
/// Returns a read-lock guarded `BeaconState` which is the `canonical_head` that has been
/// updated to match the current slot clock.
pub fn current_state(&self) -> RwLockReadGuard<BeaconState<T::EthSpec>> {
self.state.read()
}
/// Returns a read-lock guarded `CheckPoint` struct for reading the head (as chosen by the
/// fork-choice rule).
///