This commit is contained in:
kaichao
2021-01-05 19:55:21 +08:00
committed by GitHub
parent 6d6794ea71
commit d2eb87f5fc
6 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
//! One is generated for every `SIZE` blocks, allowing us to discard those blocks in
//! favor of the trie root. When the "ancient" blocks need to be accessed, we simply
//! request an inclusion proof of a specific block number against the trie with the
//! root has. A correct proof implies that the claimed block is identical to the one
//! root hash. A correct proof implies that the claimed block is identical to the one
//! we discarded.
use hash_db;
+1 -1
View File
@@ -256,7 +256,7 @@ where
) -> Option<Self::Claim> {
let expected_author = slot_author::<P>(slot_number, epoch_data);
expected_author.and_then(|p| {
if SyncCryptoStore::has_keys(
if SyncCryptoStore::has_keys(
&*self.keystore,
&[(p.to_raw_vec(), sp_application_crypto::key_types::AURA)],
) {
@@ -1306,7 +1306,7 @@ impl<B, E, Block, RA> BlockBuilderProvider<B, Block, Self> for Client<B, E, Bloc
}
}
impl<B, E, Block, RA> ExecutorProvider<Block> for Client<B, E, Block, RA> where
impl<B, E, Block, RA> ExecutorProvider<Block> for Client<B, E, Block, RA> where
B: backend::Backend<Block>,
E: CallExecutor<Block>,
Block: BlockT,