mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 10:01:17 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user