Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizdave97 committed Dec 31, 2023
1 parent 63c10ba commit 526053e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parachain/modules/ismp/polygon-pos/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub struct ConsensusState {
pub struct PolygonClientUpdate {
/// Headers sorted in ascending order
pub consensus_update: BoundedVec<CodecHeader, ConstU32<256>>,
/// The leading hash in a fork, use a default value when building on the latest finalized hash
/// Parent hash of the first header in the list
pub chain_head: H256,
}

Expand Down Expand Up @@ -117,7 +117,7 @@ impl<T: Config, H: IsmpHost + Send + Sync + Default + 'static> ConsensusClient
"Headers are meant to be in sequential order".to_string(),
))?
}
log::info!(target: "pallet-ismp", "Parent hash: {:#?} Header {:#?}", parent_hash, (header.number));

let sprint = get_sprint(header.number.low_u64());
let validators =
chain.validators.get(&sprint).unwrap_or(&consensus_state.finalized_validators);
Expand Down

0 comments on commit 526053e

Please sign in to comment.