pub fn check_proof<Header, Hasher>(
	local_root: Header::Hash,
	local_number: Header::Number,
	remote_hash: Header::Hash,
	remote_proof: Vec<Vec<u8>>
) -> ClientResult<()>
	where
		Header: HeaderT,
		Hasher: hash_db::Hasher,
		Hasher::Out: Ord + HeapSizeOf,
{
	do_check_proof::<Header, Hasher, _>(local_root, local_number, remote_hash, move |local_root, local_cht_key|
		read_proof_check::<Hasher>(local_root, remote_proof,
			local_cht_key).map_err(|e| ClientError::from(e)))
}
/// Check CHT-based header proof.
Check CHT-based header proof.
Check CHT - based header proof .
pub fn check_proof<Header, Hasher>(
	local_root: Header::Hash,
	local_number: Header::Number,
	remote_hash: Header::Hash,
	remote_proof: Vec<Vec<u8>>
) -> ClientResult<()>
	where
		Header: HeaderT,
		Hasher: hash_db::Hasher,
		Hasher::Out: Ord + HeapSizeOf,
{
	do_check_proof::<Header, Hasher, _>(local_root, local_number, remote_hash, move |local_root, local_cht_key|
		read_proof_check::<Hasher>(local_root, remote_proof,
			local_cht_key).map_err(|e| ClientError::from(e)))
}
pub fn check_proof < Header , Hasher > ( local_root : Header :: Hash , local_number : Header :: Number , remote_hash : Header :: Hash , remote_proof : Vec < Vec < u8 > > ) -> ClientResult < ( ) > where Header : HeaderT , Hasher : hash_db :: Hasher , Hasher :: Out : Ord + HeapSizeOf , { do_check_proof :: < Header , Hasher , _ > ( local_root , local_number , remote_hash , move | local_root , local_cht_key | read_proof_check :: < Hasher > ( local_root , remote_proof , local_cht_key ) . map_err ( | e | ClientError :: from ( e ) ) ) }
Check CHT-based header proof.
Check CHT - based header proof .
local_root
Header::Hash
local_number
Header::Number
remote_hash
Header::Hash
remote_proof
Vec<Vec<u8>>
local_root
Header::Hash
local_number
Header::Number
remote_hash
Header::Hash
remote_proof
Vec<Vec<u8>>