Added client function to delete a recent block (#8533)

* Implemented recent block removal

* Apply suggestions from code review

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Arkadiy ParonyanandBastian Köcher authored and GitHub committed 2021-05-05 16:16:34 +00:00
1 parent 7c3a3f79ba
commit d11e60510e
7 files changed
+295 -49

No files matched your search

+7
View File
@@ -246,6 +246,13 @@ impl<S, Block> ClientBackend<Block> for Backend<S, HashFor<Block>>
Err(ClientError::NotAvailableOnLightClient)
}
fn remove_leaf_block(
&self,
_hash: &Block::Hash,
) -> ClientResult<()> {
Err(ClientError::NotAvailableOnLightClient)
}
fn get_import_lock(&self) -> &RwLock<()> {
&self.import_lock
}