Compact extrinsics (#1314)

This commit is contained in:
Gav Wood authored and GitHub committed 2018-12-21 12:55:44 +01:00
1 parent 353a87732d
commit a6c77e4f82
3 files changed
+293 -1

No files matched your search

+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()))
}