pub async fn best_finalized_peer_header_at_self<SelfChain, PeerChain>(
self_client: &impl Client<SelfChain>,
at_self_hash: HashOf<SelfChain>,
) -> Result<Option<HeaderIdOf<PeerChain>>, SubstrateError>
Expand description
Reads best PeerChain
header known to the SelfChain
using provided runtime API method.
Method is supposed to be the <PeerChain>FinalityApi::best_finalized()
method.