From 526053edf29f738a3c02549a013cb2ad9dd76da3 Mon Sep 17 00:00:00 2001 From: David Salami Date: Sun, 31 Dec 2023 16:41:15 +0100 Subject: [PATCH] doc --- parachain/modules/ismp/polygon-pos/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parachain/modules/ismp/polygon-pos/src/lib.rs b/parachain/modules/ismp/polygon-pos/src/lib.rs index fa2c5bc1e..dd9e87d54 100644 --- a/parachain/modules/ismp/polygon-pos/src/lib.rs +++ b/parachain/modules/ismp/polygon-pos/src/lib.rs @@ -61,7 +61,7 @@ pub struct ConsensusState { pub struct PolygonClientUpdate { /// Headers sorted in ascending order pub consensus_update: BoundedVec>, - /// 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, } @@ -117,7 +117,7 @@ impl 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);