Compact extrinsics (#1314)

This commit is contained in:
Gav Wood
2018-12-21 12:55:44 +01:00
committed by GitHub
parent 353a87732d
commit a6c77e4f82
3 changed files with 293 additions and 1 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ impl<B, E, Block, RA> Client<B, E, Block, RA> where
pub fn authorities_at(&self, id: &BlockId<Block>) -> error::Result<Vec<AuthorityId>> {
match self.backend.blockchain().cache().and_then(|cache| cache.authorities_at(*id)) {
Some(cached_value) => Ok(cached_value),
None => self.executor.call(id, "Core_authorities",&[])
None => self.executor.call(id, "Core_authorities", &[])
.and_then(|r| Vec::<AuthorityId>::decode(&mut &r.return_data[..])
.ok_or(error::ErrorKind::InvalidAuthoritiesSet.into()))
}