mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 14:41:11 +00:00
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:
committed by
GitHub
parent
8fa1210dc6
commit
2de0d08e23
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user