pub async fn read_client_state<SelfChain, PeerChain>(
self_client: &impl Client<SelfChain>,
) -> Result<ClientState<HeaderIdOf<SelfChain>, HeaderIdOf<PeerChain>>, Error>where
SelfChain: Chain,
PeerChain: Chain,
Expand description
Read best blocks from given client.
This function assumes that the chain that is followed by the self_client
has
bridge GRANDPA pallet deployed and it provides best_finalized_header_id_method_name
runtime API to read the best finalized Bridged chain header.
The value of actual_best_finalized_peer_at_best_self
will always match
the best_finalized_peer_at_best_self
.