BlockId removal: refactor: Finalizer (#1779)

* BlockId removal: refactor: Finalizer

It changes the arguments of methods of `Finalizer` trait from: block:
`BlockId<Block>` to: hash: `&Block::Hash`

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

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

* update Cargo.lock

* Cargo.lock update again

Co-authored-by: parity-processbot <>
This commit is contained in:
Michal Kucharczyk
2022-10-20 17:21:40 +02:00
committed by GitHub
parent cd00590f21
commit e521ad2504
2 changed files with 188 additions and 188 deletions
+187 -187
View File
File diff suppressed because it is too large Load Diff
@@ -102,7 +102,7 @@ where
// don't finalize the same block multiple times.
if parachain.usage_info().chain.finalized_hash != hash {
if let Err(e) = parachain.finalize_block(BlockId::hash(hash), None, true) {
if let Err(e) = parachain.finalize_block(&hash, None, true) {
match e {
ClientError::UnknownBlock(_) => tracing::debug!(
target: "cumulus-consensus",