pub trait WarpSyncProvider<Block: BlockT>: Send + Sync {
// Required methods
fn generate(
&self,
start: Block::Hash,
) -> Result<EncodedProof, Box<dyn Error + Send + Sync>>;
fn create_verifier(&self) -> Box<dyn Verifier<Block>>;
}Expand description
Warp sync backend. Handles retrieving and verifying warp sync proofs.
Required Methods§
Sourcefn generate(
&self,
start: Block::Hash,
) -> Result<EncodedProof, Box<dyn Error + Send + Sync>>
fn generate( &self, start: Block::Hash, ) -> Result<EncodedProof, Box<dyn Error + Send + Sync>>
Generate proof starting at given block hash. The proof is accumulated until maximum proof size is reached.
Sourcefn create_verifier(&self) -> Box<dyn Verifier<Block>>
fn create_verifier(&self) -> Box<dyn Verifier<Block>>
Create a verifier for warp sync proofs.