Do not finalize parent twice (#12653)

If the parent block is alread finalized, we don't need to do this again.
This commit is contained in:
Bastian Köcher
2022-11-09 09:22:34 +01:00
committed by GitHub
parent 8aedd25619
commit 1e9763cf81
@@ -656,7 +656,7 @@ where
// Ensure parent chain is finalized to maintain invariant that finality is called
// sequentially.
if finalized && parent_exists {
if finalized && parent_exists && info.finalized_hash != parent_hash {
self.apply_finality_with_block_hash(
operation,
parent_hash,