BlockId removal: refactor: HeaderBackend::status (#2007)

* BlockId removal: refactor: HeaderBackend::status

It changes the arguments of `HeaderBackend::status` method from: `BlockId<Block>` to: `Block::Hash`

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

* update lockfile for {"polkadot", "substrate"}

Co-authored-by: parity-processbot <>
This commit is contained in:
Michal Kucharczyk
2022-12-21 12:52:40 +01:00
committed by GitHub
parent 8fa1210dc6
commit 2de0d08e23
3 changed files with 257 additions and 271 deletions
@@ -265,9 +265,7 @@ where
{
let _lock = backend.get_import_lock().read();
let block_id = BlockId::Hash(hash);
if backend.blockchain().status(block_id)? == BlockStatus::InChain {
if backend.blockchain().status(hash)? == BlockStatus::InChain {
return Ok(BlockCheckStatus::InChain)
}