pub fn check_proof_on_proving_backend<Header, Hasher>(
	local_root: Header::Hash,
	local_number: Header::Number,
	remote_hash: Header::Hash,
	proving_backend: &TrieBackend<MemoryDB<Hasher>, Hasher>,
) -> ClientResult<()>
	where
		Header: HeaderT,
		Hasher: hash_db::Hasher,
		Hasher::Out: Ord + HeapSizeOf,
{
	do_check_proof::<Header, Hasher, _>(local_root, local_number, remote_hash, |_, local_cht_key|
		read_proof_check_on_proving_backend::<Hasher>(
			proving_backend, local_cht_key).map_err(|e| ClientError::from(e)))
}
/// Check CHT-based header proof on pre-created proving backend.
Check CHT-based header proof on pre-created proving backend.
Check CHT - based header proof on pre - created proving backend .
pub fn check_proof_on_proving_backend<Header, Hasher>(
	local_root: Header::Hash,
	local_number: Header::Number,
	remote_hash: Header::Hash,
	proving_backend: &TrieBackend<MemoryDB<Hasher>, Hasher>,
) -> ClientResult<()>
	where
		Header: HeaderT,
		Hasher: hash_db::Hasher,
		Hasher::Out: Ord + HeapSizeOf,
{
	do_check_proof::<Header, Hasher, _>(local_root, local_number, remote_hash, |_, local_cht_key|
		read_proof_check_on_proving_backend::<Hasher>(
			proving_backend, local_cht_key).map_err(|e| ClientError::from(e)))
}
pub fn check_proof_on_proving_backend < Header , Hasher > ( local_root : Header :: Hash , local_number : Header :: Number , remote_hash : Header :: Hash , proving_backend : & TrieBackend < MemoryDB < Hasher > , Hasher > , ) -> ClientResult < ( ) > where Header : HeaderT , Hasher : hash_db :: Hasher , Hasher :: Out : Ord + HeapSizeOf , { do_check_proof :: < Header , Hasher , _ > ( local_root , local_number , remote_hash , | _ , local_cht_key | read_proof_check_on_proving_backend :: < Hasher > ( proving_backend , local_cht_key ) . map_err ( | e | ClientError :: from ( e ) ) ) }
Check CHT-based header proof on pre-created proving backend.
Check CHT - based header proof on pre - created proving backend .
local_root
Header::Hash
local_number
Header::Number
remote_hash
Header::Hash
proving_backend
&TrieBackend<MemoryDB<Hasher>, Hasher>
local_root
Header::Hash
local_number
Header::Number
remote_hash
Header::Hash
proving_backend
&TrieBackend<MemoryDB<Hasher>, Hasher>