Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion hyperspace/parachain/src/finality_protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ use std::{
};

use beefy_prover::helpers::unsafe_arc_cast;
use grandpa_light_client_primitives::justification::find_forced_change;
use grandpa_prover::{
GrandpaJustification, GrandpaProver, JustificationNotification, PROCESS_BLOCKS_BATCH_SIZE,
};
Expand Down Expand Up @@ -646,7 +647,8 @@ where
let target = sp_runtime::generic::Header::<u32, BlakeTwo256>::decode(&mut &*target)
.expect("Should not panic, same struct from different crates");

let authority_set_changed_scheduled = find_scheduled_change(&target).is_some();
let authority_set_changed_scheduled =
find_scheduled_change(&target).is_some() || find_forced_change(&target).is_some();
log::info!(target: "hyperspace_parachain", "authority_set_changed_scheduled = {authority_set_changed_scheduled}, timeout_update_required = {timeout_update_required}, is_update_required = {is_update_required}");
// if validator set has changed this is a mandatory update
let update_type =
Expand Down