Merge branch 'master' into sos

This commit is contained in:
Paul Hauner
2019-05-13 15:17:56 +10:00
25 changed files with 127 additions and 264 deletions

View File

@@ -19,10 +19,10 @@ impl<T: ClientDB> BeaconStateStore<T> {
Self { db }
}
pub fn get_deserialized<B: EthSpec>(
pub fn get_deserialized<E: EthSpec>(
&self,
hash: &Hash256,
) -> Result<Option<BeaconState<B>>, DBError> {
) -> Result<Option<BeaconState<E>>, DBError> {
match self.get(&hash)? {
None => Ok(None),
Some(ssz) => {