BlockId removal: refactor: BlockBackend::block_body (#6223)

* BlockId removal: refactor: BlockBackend::block_body

It changes the arguments of `BlockBackend::block_body` method from: `BlockId<Block>` to: `&Block::Hash`

This PR is part of BlockId::Number refactoring analysis (paritytech/substrate#11292)

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
This commit is contained in:
Michal Kucharczyk
2022-11-01 18:22:46 +01:00
committed by GitHub
parent 1f8219767e
commit be70e4456c
2 changed files with 182 additions and 182 deletions
+180 -180
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -327,13 +327,13 @@ impl UsageProvider<Block> for Client {
impl sc_client_api::BlockBackend<Block> for Client { impl sc_client_api::BlockBackend<Block> for Client {
fn block_body( fn block_body(
&self, &self,
id: &BlockId<Block>, hash: &<Block as BlockT>::Hash,
) -> sp_blockchain::Result<Option<Vec<<Block as BlockT>::Extrinsic>>> { ) -> sp_blockchain::Result<Option<Vec<<Block as BlockT>::Extrinsic>>> {
with_client! { with_client! {
self, self,
client, client,
{ {
client.block_body(id) client.block_body(hash)
} }
} }
} }