Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Do not finalize parent twice (#12653)
Browse files Browse the repository at this point in the history
If the parent block is alread finalized, we don't need to do this again.
  • Loading branch information
bkchr authored Nov 9, 2022
1 parent 26e53b4 commit f9ebd2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/service/src/client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f9ebd2a

Please sign in to comment.